linkazoid Posted March 3, 2010 Posted March 3, 2010 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... Michael
tinmanjo Posted March 18, 2010 Posted March 18, 2010 I think you mean Now(), this gives the current system time and date.
Hecate Posted March 18, 2010 Posted March 18, 2010 Date() works for me on a date column but I separate date and time into different fields
CESIL Posted March 18, 2010 Posted March 18, 2010 (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 March 18, 2010 by CESIL
apeo Posted March 18, 2010 Posted March 18, 2010 The query is comparing the whole date/time combo. LOL good point..
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now