I have a database (Access) which has a table in it created with the following sql statement in vb code
sqltext = "CREATE TABLE Reports (ID COUNTER CONSTRAINT Recid PRIMARY KEY, RepDate datetime,report_name text,"
sqltext = sqltext & " Userid text, Country text,Unit text,Yr text(2),Wk text(2),Reptype text,Repdesc text,Path text,access text)"
when i run the query from vb using the statement below I return nothing even though there are reports in there that match the date can anyone tell me why?
sqltext = "Select * from reports where Repdate=#" & Date & "#"
please can someone help this is driving me up the wall.
sdh :
sqltext = "CREATE TABLE Reports (ID COUNTER CONSTRAINT Recid PRIMARY KEY, RepDate datetime,report_name text,"
sqltext = sqltext & " Userid text, Country text,Unit text,Yr text(2),Wk text(2),Reptype text,Repdesc text,Path text,access text)"
when i run the query from vb using the statement below I return nothing even though there are reports in there that match the date can anyone tell me why?
sqltext = "Select * from reports where Repdate=#" & Date & "#"
please can someone help this is driving me up the wall.
sdh :
