G
Guest
Hi I have the following code:
dteDte = Date()
strSQL4 = "DELETE [2 Current Schedule].* " & _
"FROM [2 Current Schedule] " & _
"WHERE ((([2 Current Schedule].[Job Run Date])= " & dteDte & " ) "
& _
"AND (([2 Current Schedule].[Job Start Time])>=#07:00:00# And ([2
Current Schedule].[Job Start Time])<=#23:59:59#));"
I have tried every different possibility I can think of with quotes around
the varible dteDte and nothing seems to work. The odd thing is I can use the
same varible in a SELECT statement (with single quotes around the double
quotes) and it works fine.
dteDte = Date()
strSQL4 = "DELETE [2 Current Schedule].* " & _
"FROM [2 Current Schedule] " & _
"WHERE ((([2 Current Schedule].[Job Run Date])= " & dteDte & " ) "
& _
"AND (([2 Current Schedule].[Job Start Time])>=#07:00:00# And ([2
Current Schedule].[Job Start Time])<=#23:59:59#));"
I have tried every different possibility I can think of with quotes around
the varible dteDte and nothing seems to work. The odd thing is I can use the
same varible in a SELECT statement (with single quotes around the double
quotes) and it works fine.