Hello Chaps,
This is only a simple one, and to be honest I feel like a moron for even having to ask, but its a frosty cold morning in the south of england, and my brain appears to be working at half speed.
I have a table called MessageLog which has a datetime column named LogDateTime, and I'm trying to biuld a query that will delete all records from the table before the 1st of October 2007.
I've tried the following query:
And it runs without error, telling me somthing like 8,000 rows have been affected, but when looking at the data I still have a stack of records for before that date.
Am I missing somthing?
Thanks guys, sorry for such a dull question, I need to get myself a coffee.
Rob
This is only a simple one, and to be honest I feel like a moron for even having to ask, but its a frosty cold morning in the south of england, and my brain appears to be working at half speed.
I have a table called MessageLog which has a datetime column named LogDateTime, and I'm trying to biuld a query that will delete all records from the table before the 1st of October 2007.
I've tried the following query:
Code:
DELETE FROM MessageLog
WHERE LogDateTime < '01/10/2007 00:00:00'
And it runs without error, telling me somthing like 8,000 rows have been affected, but when looking at the data I still have a stack of records for before that date.
Am I missing somthing?
Thanks guys, sorry for such a dull question, I need to get myself a coffee.
Rob