I am a newb on VB 2005 and I am trying to rework a DB app an ex colleague had made before.
There is an ACCESS backend with a field tstmp (Timestamps) I need to make a simple query with two Textboxes and the Text Boxes take the users input in the MM/DD/YYYY hh/mm/ss format.
The code I have is :
Dim Dt as datetime
Dim Dt1 as datetime
dt = TextBox1.Text
dt1 = TextBox2.Text
"select * from table1 where tstmp between '" & dt & "' and'" & dt2 & "'
this query generates an error. Could anyone please help ?
There is an ACCESS backend with a field tstmp (Timestamps) I need to make a simple query with two Textboxes and the Text Boxes take the users input in the MM/DD/YYYY hh/mm/ss format.
The code I have is :
Dim Dt as datetime
Dim Dt1 as datetime
dt = TextBox1.Text
dt1 = TextBox2.Text
"select * from table1 where tstmp between '" & dt & "' and'" & dt2 & "'
this query generates an error. Could anyone please help ?
Comment