Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text box default value

Status
Not open for further replies.

ssvec

Technical User
Jun 12, 2001
15
US
I hope this is a no-brainer. I have several fields from 2 subforms that are added together to display totals on the main form. When 1 subform returns no values, the total calculation displays #Error on the main form. Is there a way to get the fields on the subforms to have a default value of zero so that maybe the total calculations will work? There is no "default value" property available on the fields on the subforms, and I am using Access 2000.
 
Instead of filling in a value in the field, use the NZ function in your calculation. If the field has no value, it will make it a zero... Terry M. Hoey

Please read the following FAQ to learn how to help me help you...

faq183-874
 
Thanks for your reply. I am using the Nz function to return a zero, this is the syntax I am using:
Nz([textbox],0)
 
and I forgot to add that it is not working..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top