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

Query Based on Table 1

Status
Not open for further replies.

brahmabull525

Programmer
Jul 19, 2004
33
US
I have a table in Access called Table1. Table1 has a field in it called StartDate, and another field in it called Days. I have another table called Table2. Table2 has a field in it called WantDate. I would like to run a Make Table query off the Table2 WantDate field that has the following criteria:

Between Table1.(Min(StartDate-1)-(Min(Days) and Table1.(Min(Start Date)-1)

I know the above is incorrect, but it basically describes what is needed. I'm looking for what is needed.

Please help!
 
Something like this ?
WHERE Table2.WantDate BETWEEN (SELECT Min(StartDate-Days-1) FROM Table1) And (SELECT Min(StartDate-1) FROM Table1)

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top