Howlsta
Vampire Slayer
- Local time
- Today, 13:43
- Joined
- Jul 18, 2001
- Messages
- 180
Simple problem I want to delete all records from a table where the year is the same as entered in a text box.
The format of the date column is dd/mm/yyyy
can't seem to get the syntax correct to look for the year within the date. I've searched but can't find an example, although it must have been asked before.
i've tried this and some other things as well
sSQL = "DELETE * FROM [Attendant circumstances] WHERE [Date]LIKE '*' & " & txtYear.Text
g_DataConnection.Execute sSQL
thanks
Rich
The format of the date column is dd/mm/yyyy
can't seem to get the syntax correct to look for the year within the date. I've searched but can't find an example, although it must have been asked before.
i've tried this and some other things as well
sSQL = "DELETE * FROM [Attendant circumstances] WHERE [Date]LIKE '*' & " & txtYear.Text
g_DataConnection.Execute sSQL
thanks
Rich