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 / New Users / December 2004

Tip: Looking for answers? Try searching our database.

Simple Formula

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tvh - 30 Dec 2004 08:11 GMT
This formula, =[TotalHours]+[TotalTravelTime], does not give me a total if
there's no number (even a "0") in the Travel Time control.  Does anyone have
a better formula that I should use?  Or, should I change something in the
table properties?  I tried changing the default value to zero, but that
doesn't work, either.  Thanks in advance! (I love you people:)
Herbert Chan - 30 Dec 2004 09:50 GMT
I guess that those fields may contain nothing.  As such, you have to change
it to as follows:

=Nz([TotalHours], 0)+Nz([TotalTravelTime], 0)

Herbert

> This formula, =[TotalHours]+[TotalTravelTime], does not give me a total if
> there's no number (even a "0") in the Travel Time control.  Does anyone have
> a better formula that I should use?  Or, should I change something in the
> table properties?  I tried changing the default value to zero, but that
> doesn't work, either.  Thanks in advance! (I love you people:)
tvh - 30 Dec 2004 10:01 GMT
Thanks, Herbert!  It works!

Now I can get some sleep....
T-

> I guess that those fields may contain nothing.  As such, you have to change
> it to as follows:
[quoted text clipped - 9 lines]
> > table properties?  I tried changing the default value to zero, but that
> > doesn't work, either.  Thanks in advance! (I love you people:)
 
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.