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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

assigning zero value to null in a form

Status
Not open for further replies.

Kelvin

Programmer
Apr 25, 2000
23
AU
Please Help

I have a Query which searches a table using an autoid. this query returns a count and a sum of two fields returned by the query.

the problem lies when the query returns no matches of the search. when this happens i wish to assign the sum a zero value, but i am having trouble doing so. i have tried "isnull" and a few other "null" commands.

Thanking you
Kelvin Johnston

 
look into using the NZ function, it should do what you want



PaulF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top