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

Query Specific Date

Status
Not open for further replies.

ensorg

IS-IT--Management
Jan 9, 2002
229
GB
Hi,

I have a table which contains a "Date/Time" field, the value of which is something like 02/10/2002 13:56:47

If I use the following query -
Between #01/10/2002# And #03/10/2002#
then it shows the data, but if I use the query -
= #02/10/2002#
I do not get any results.
How can I modify my query so I can get results for a specific date?

Thanks
 
Between #01/10/2002# And #03/10/2002#


MEANS Midnight at the START of 01/10/2002
to MIDNIGHT at the START of 03/10/2002

So if you want to include times during 03/10/20 then you'll need

Between #01/10/2002# And #03/10/2002 23:59:59#



'ope-that-'elps.


G LS
accessaceNOJUNK@valleyalley.co.uk
Remove the NOJUNK to use.

Please remember to give helpful posts the stars they deserve!
This makes the post more visible to others in need! :-D

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top