Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Programming / April 2008

Tip: Looking for answers? Try searching our database.

MSQuery and NZ()

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
JimS - 14 Apr 2008 21:32 GMT
I have a stored query in Access I use to export a "flattened" version of my
highly normalized database. It's exported to excel.

I have recently taught my users to use MS Query from excel, targeting the
stored "flattened" query. Unfortunately, due to the prevelance of nulls in
certain field used for calculations, I use the NZ() function alot in the
"flattened" query. It calculates dollars from the sum of several
multiplications, so it's important to be there in exactly the right way for
consistency. I could force the user to do the calcs in Excel, but I'm certain
they'd lose consistentcy and rounding.

Example:

TotalDlrs:
CCur(Round(Round(nz([stdhours])*nz([strate]),2)+Round(nz([othours])*nz([otrate]),2)+Round(nz([dthours])*nz([dtrate]),2),2))

If any of the fields (rates, hours) were null, the whole equation comes out
to 0 (null).

When my users target my "flattened" query from excel, they get an error
saying the "nz()" function is not found. How can I overcome this?

Signature

Jim

Jim Thomlinson - 14 Apr 2008 22:56 GMT
Not sure if this helps but you can give it a look...

http://www.dailydoseofexcel.com/archives/2007/02/25/nz-function/
Signature

HTH...

Jim Thomlinson

> I have a stored query in Access I use to export a "flattened" version of my
> highly normalized database. It's exported to excel.
[quoted text clipped - 17 lines]
> When my users target my "flattened" query from excel, they get an error
> saying the "nz()" function is not found. How can I overcome this?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.