SeanieC
07-17-2006, 07:09 AM
I'm having trouble running a query and I was wondering if anyone could just show me what I am doing wrong.
I have a table in this case its called tbltimes, inside my table I have a column called time stamp.
The timestamp is in the format of
dd/mm/yyyy hh:mm:ss (not sure if thats the right query indentifiers)
Well I need to retrieve information of from the last 15 days of the current day and instead of constantly updating the query with the current date I wanted the query to use the now() & CurrentDate() command but 15 days ago.
I tried
SELECT * FROM tbltimes WHERE timestamp >= CurrentDate() -15;
but it didn't work, I guess it was a long shot anyways,
Well thanks for anyone who can help!
Sean Cansdale.
I have a table in this case its called tbltimes, inside my table I have a column called time stamp.
The timestamp is in the format of
dd/mm/yyyy hh:mm:ss (not sure if thats the right query indentifiers)
Well I need to retrieve information of from the last 15 days of the current day and instead of constantly updating the query with the current date I wanted the query to use the now() & CurrentDate() command but 15 days ago.
I tried
SELECT * FROM tbltimes WHERE timestamp >= CurrentDate() -15;
but it didn't work, I guess it was a long shot anyways,
Well thanks for anyone who can help!
Sean Cansdale.