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 / January 2007

Tip: Looking for answers? Try searching our database.

Text Box Formula in a report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dabears70 - 30 Jan 2007 16:23 GMT
Is there a way to create a default value for a calculation in a text box. For
example in our database a percentage is derived by dividing two different
numbers, but if one of the values is zero then a error pops up saying "#Num!".

Is there a way to make this default to zero? If so, how would I do that?
Signature

Nick

Jeff Boyce - 30 Jan 2007 17:00 GMT
Nick

Modify the formula/calculation to include handling the Div/0 and other error
conditions.

You could use the IIF() statement in  your source, something like:
   =IIF(...

Regards

Jeff Boyce
Microsoft Office/Access MVP

> Is there a way to create a default value for a calculation in a text box.
> For
[quoted text clipped - 3 lines]
>
> Is there a way to make this default to zero? If so, how would I do that?
 
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.