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

Can this be done in Access?

Status
Not open for further replies.

quest4

Technical User
Aug 27, 2001
735
US
Can I run a second query from within the current running query? I would like to run it this way:
WHERE (A Is Null or A="xx") And If Exits (A="yy" Or A="zz")
Then qry1. I'm not sure of the syntax, but is this doable? Thanks.
 
Hi, i'm not entirely sure on what you're askin to do, but i'm kind asure this might help you:

{SELECT A, B, C
FROM table1
WHERE A Is Null
OR A = "xx"
{SELECT A
FROM table1
WHERE A = "yy"
OR A = "zz"
}
}

Hope this helps... I have not failed; I merely found 100,000 different ways of not succeding...
 
What I am try to ask is:
if one of the following two conditions exists then run qry1.
Can this be done and how? Thanks for the response.
 
I managed to figure out that this can't be done. You must paste that query at the end of each line. It is big and hard to read, but it works fine, now. Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top