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

1 criteria 2 places

Status
Not open for further replies.

Krash878

Programmer
May 8, 2001
172
0
0
US
Hey all

I have a query that powers a report. I want the query to be based on criteria on a form

the manual criteria is

>=#8/1/2004 12:00:01 AM# And <=#8/31/2004 12:00:01 AM#

I need to get Forms!JobLog!txtDateBegin and Forms!JobLog!txtDateEnd in this criteria. I just want to switch out the dates and keep the times. The text boxes these are refering to are set up as simple dates.

Any Idead

Thanks

Krash
 
Look in help under
Format Property - Date/Time Data Type

Hope this helps
Hymn
 
I ended up using

>=[forms]![joblog]![txtDateBegin] And <=[forms]![joblog]![txtDateEnd]

Thanks

Krash
 
How about...
BETWEEN forms!joblog!txtDateBegin AND forms!joblog!txtDateEnd


Randy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top