In an asp file I am opening an ADO recordset and want to search for a unique record in the set that matches name, date and time in the database against the entries by a user. All three db fields are defined in the db as varchars.
A form is used to enter the three values at the client side and then the form is submitted to this asp file which then does the SELECT on the recordset. The resultant row of values then populate the GUI form in the client's browser.
Here's the SELECT that I'm having trouble with.
.Source = "SELECT * FROM CareMinistry WHERE care_Contact_Last_Name = '" & field4 & "'" AND entry_Date = "'" & field2 & "'" AND entry_Time = "'" & field3 & "'" & ";"
Thanks for your help.
A form is used to enter the three values at the client side and then the form is submitted to this asp file which then does the SELECT on the recordset. The resultant row of values then populate the GUI form in the client's browser.
Here's the SELECT that I'm having trouble with.
.Source = "SELECT * FROM CareMinistry WHERE care_Contact_Last_Name = '" & field4 & "'" AND entry_Date = "'" & field2 & "'" AND entry_Time = "'" & field3 & "'" & ";"
Thanks for your help.