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

#error in query

Status
Not open for further replies.

scriggs

IS-IT--Management
Jun 1, 2004
286
GB
Hi

I have a query which is left joined so some fields have no data. Also some fields have a zero in them.

I am trying to perform a calculation like a/b and if a or b is missing then I get an #error.

I have tried iif(isnull(a),0,a/b) and nz(a,0) but still get errors.

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top