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!

Table Date as Query Criteria

Status
Not open for further replies.

brahmabull525

Programmer
Jul 19, 2004
33
US

I have a table in Access called "Info" which contains a field called "Date". I would like run a query off a separate table that uses the Max value in the Info table Date field, using criteria "Between [MaxValueofDateinInfo] and Date()". Obviously, I'm struggling with what should be used in place of the [MaxValueofDateinInfo] part.

Any and all help is most appreciated.

Thanks!
 
Why not simply this ?
Between (SELECT Max(Info.Date) FROM Info) And Date()
Or this ?
Between DMax("[Date]","Info") And Date()

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Also, Date is not a recommended name for a field as it is a resereved word (the function of the same name).

A list of reserved words can be found here.



Stewart J. McAbney | Talk History
 

PH - Thanks for the help, that's exactly what I needed!

Stewart - I agree with your statement. The actual names I'm using aren't "Info" and "Date", I just wanted to use the easiest, understandable terms to make my post as clear as possible.

Thanks to you both for responding.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top