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

Anything but zero

Status
Not open for further replies.

Gojira999

Technical User
Jun 22, 2004
57
0
0
GB
I have written a query that extracts values from a form and returns a value to a table.

What I want it to do is where the extracted value is greater than zero, to return a value of 1 to the table, else simply return a value of 0.

I have tried using the following field criteria without success:

Code:
cbo3: ([forms]![Audit-controlpanel-form]![cbo3]>0) =1 else =0

Please could anyone give me a pointer here.Thanks.
 
Have you tried something like this ?
cbo3: IIf([Forms]![Audit-controlpanel-form]![cbo3]>0, 1, 0)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top