Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Problems with NZ function
Teresa Baldwin 

14 years ago
Field to get the value and set to value or null:  NEWBUYOUT: Nz([BUYOUT_QUANTITY],[0])

Field to pull value from above field:
CleanNum: [NEWBUYOUT]

Field to do math:
Pull: [WS_QUANTITY]-[CleanNum]

The query shows numbers the report will still error on any [Pull] item that the [CleanNum]is 0 (the original field was null)

As to the other, I appreciate your response and understand this is free help.  The site does send you e-mails every time to view the site, so in wanting to try and resolve this issue, I was viewing the site several times daily and getting two e-mails for each visit.  


Reply from Richard Rost:

Don't put the 0 in square brackets. Now Access will look for a field NAMED "0" which you shouldn't ever have. It should just be:

NEWBUYOUT: Nz([BUYOUT_QUANTITY],0)

Run that query by itself and make sure all your values are good. THEN run the 2nd query using query 1 for data.


This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/18/2026 1:30:35 PM. PLT: 0s