maverickmonster
Programmer
I have the following code in my VB6 form, defRsp takes its information from a txtbox which will contain typed date of birth. When you type a date of birth in the code goes to my error code to say record doesnt exist. the dob typed is in the table is in the database.
The dob is formated as a date/time and i can not change this.
How can i rectify this so that it works ?
Many thanks in advanced
Maverickmonster
The dob is formated as a date/time and i can not change this.
Code:
Which = " Select * from [BPD] where [BPD].dob =" & defRsp & " "
RSbpd.Open Which, cn, adOpenKeyset, adLockOptimistic ' open recordset
How can i rectify this so that it works ?
Many thanks in advanced
Maverickmonster