syntax error

J

JT

I am having trouble with criteria in my query. I'm trying
to use an expression but keep getting a syntax error. The
expression for the GroupID field in the Vehicle table is
as follows

"where [dbo_tb_Vehicle]![GroupID]" In (select (distinct
GroupID])from [Unit Table]!)

I'm trying to select transactions from the Vehicle table
when the GroupID is in a list of distinct GroupIDs from
the Unit Table. There will be transactions in the Vehicle
table with a GroupID that is not in the Unit Table. I do
not want those transactions.

Any help in correcting the syntax would be appreciated.
Thanks for the help....
 

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