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!

Query result as macro condition

Status
Not open for further replies.

Straw

Technical User
Mar 7, 2002
10
0
0
US
OK...here we go!

I have a query that counts the number of occurences of something in a table.

Then I have a macro that I want to run if that query counts more than 0 occurences of this thing. I tried to set this up as a condition in the macro but with no success. What I have in the condition statement is:

[QryCountNoCode]![CountOfNoClientID]>0

Where "QryCountNoCode" is the name of the Query
And "CountOfNoClientID" is the field name where the result of the query is displayed

Do I have this set up wrong? Please help!!

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top