Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / June 2005

Tip: Looking for answers? Try searching our database.

Null Value problem in query

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LJG - 30 Jun 2005 21:02 GMT
Hi Guys,

How can I change this expression to add 0 to any null values?

soflinesum: Sum([qty]*[price])

TIA
Les
nospam.com - 30 Jun 2005 22:04 GMT
>How can I change this expression to add 0 to any null values?
>
>soflinesum: Sum([qty]*[price])

Sum(Nz(qty*price,0))
Marshall Barton - 01 Jul 2005 00:32 GMT
>How can I change this expression to add 0 to any null values?
>
>soflinesum: Sum([qty]*[price])

You should not have to do that because the aggregate
functions ignore null values in their calculations.

Signature

Marsh
MVP [MS Access]

 
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.