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

How to create parameter where field <> 0.00

Status
Not open for further replies.

veronic

Programmer
Apr 6, 2004
73
US
I need to create a parameter where user should be able to select all records or records where Balance <> 0.00. I am missing something very easy....but


Thank you
 
Not simple.

In your query, add an extra column:
test:iif(isnull([Enter exclude value]),true,Balance<>[Enter exclude value])

Then in the criteria for this column put : True

When you run the query, click Ok on the parameter prompt if you want all records; enter a 0 if you want non-zero values.
(Obviously(?) you can enter any value in the parameter and it will exclude records with a matching balance)
Make sure that the parameter text is exactly the same in both cases.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top