can access handle nested sub queries

R

raj chahal

hi
I've kindly recieved help on a previous topic. The question now is : will
the code below work with acess ?

SELECT EventName, dt
FROM tablename
WHERE (dt >= #20030928# AND dt <#20031006#)
OR (recurring = 1 AND DayOfWeek IN (SELECT DayOfWeek FROM DatesTable
WHERE
(dt >= #20030928# AND dt <#20031006#) AND dt >= tablename.dt))

Thanks again

Raj
 
T

Tim Ferguson

I've kindly recieved help on a previous topic. The question now is : will
the code below work with acess ?

No: because the date literal values are corrupt. But the subselect will
work.

Tim F
 

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