Jump to content

Recommended Posts

Posted

Hi

 

I have a Access Database, which has a DateTime Column. The data is logged as DD/MM/YYYY HH:MM:SS

 

When I create a query to get all data for today's date, Date() it does not show anything. Is there a way I can split this data so I can just get todays date?

 

Sorry if it doen't make sense... :D

 

Michael

  • 3 weeks later...
Posted (edited)

The query is comparing the whole date/time combo.

 

If you use Format([datefield],"dd/mm/yy") for the column value and Format(Date(),"dd/mm/yy") for the criteria then you will be able to find matches for the system date.

Edited by CESIL

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...