Sub-Query

J

JPM

They don't seem to be working in Access 2K. I know I've used them before.

E.g.:

Delete * from tblX where tblX.Name = (Select tblY.Name From TblY)

The help file example seems to indicate this would work. So does my past
Access experience and my experience with T-SQL. What am I missing today?


Thanks for the help.

JPM
 
G

GreySky

Try using "In" instead of =. For example:

Delete * from tblX where tblX.Name In (Select tblY.Name
From TblY)

David
 
J

JPM

That might help.
My actual case involves a multi-column table. Referring to an older version
of Access, I found it defaulted the query to include the DISTINCTROW
keyword. Using the same keyword in Access 2K resolved the issue.

Thanks,
JPM
 

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

Top