Hi
i am running a date query
squery = "Insert into " & txttablename & " IN '" & txtdatabase & " ' select * from " & sTableName & " IN '" & txtfolderpath & "\" & sArrFolder(icou nt) & "\" & sDirFolder & " ' where Yp1VStartTime <= " & DTPstart & " and YP1VEndTime >= " & DTPEnd & " "
but it is showing this error i,e
syntax error (missing operator ) in query expression Yp1VStartTime <= 4/14/2008 2:30:00 PM and YP1VEndTime >= 4/14/2008 10:00:00 PM
please check my query and give some idea
pleasssssssssse
varinder
i am running a date query
squery = "Insert into " & txttablename & " IN '" & txtdatabase & " ' select * from " & sTableName & " IN '" & txtfolderpath & "\" & sArrFolder(icou nt) & "\" & sDirFolder & " ' where Yp1VStartTime <= " & DTPstart & " and YP1VEndTime >= " & DTPEnd & " "
but it is showing this error i,e
syntax error (missing operator ) in query expression Yp1VStartTime <= 4/14/2008 2:30:00 PM and YP1VEndTime >= 4/14/2008 10:00:00 PM
please check my query and give some idea
pleasssssssssse
varinder
Comment