Run a query in a query.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If i have a query called SunQuery, how can I run it in an if statement, for
example.

if T.Min>T.Inventory then run query.


Thanks.
 
InventoryQueryGuy said:
If i have a query called SunQuery, how can I run it in an if statement, for
example.

if T.Min>T.Inventory then run query.


Thanks.

You'd have to open a recordset based on the first query or use DMin()
in your If statement. Even so, you can't run one query from within
another. You could do it in a macro or code, though.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top