Hi All,
Got an issue with SQL statement. My problem is I import a text file 4 times a day (data is always updated). The first import may contain 20 lines the next 50 always growing.
To avoid double counting (since the import always has the previous data) I tried to use the below SQL statementto delet any data from my table with the current date. Currently I have to go into the statement and change the date manually.
I tried using the Date() varaible but since my import date is text (18Feb05) it does not work...I tried changing the import from text to date, but I get conversion errors and the date disappears. Any suggestions would be greatly appreciated.
DELETE tblAA_AA_New_DMO.*, tblAA_AA_New_DMO.Date FROM tblAA_AA_New_DMO WHERE tblAA_AA_New_DMO.Date="18Feb2005
Got an issue with SQL statement. My problem is I import a text file 4 times a day (data is always updated). The first import may contain 20 lines the next 50 always growing.
To avoid double counting (since the import always has the previous data) I tried to use the below SQL statementto delet any data from my table with the current date. Currently I have to go into the statement and change the date manually.
I tried using the Date() varaible but since my import date is text (18Feb05) it does not work...I tried changing the import from text to date, but I get conversion errors and the date disappears. Any suggestions would be greatly appreciated.
DELETE tblAA_AA_New_DMO.*, tblAA_AA_New_DMO.Date FROM tblAA_AA_New_DMO WHERE tblAA_AA_New_DMO.Date="18Feb2005