I have a form that is bound to a table via ADO. On it i have several Text boxes and one of them carries the Date of birth (txtDate). I have used a DataEnvironment to update the table (tblNames). Before i added the txtDate text box i was able to modify data and click on an update command button. However, when i added the Date text box i started getting this error Run-time error '-2147217913 (80040e07)': Data type mismatch in criteria expression..
The command button cmdUpdate code is shown here:
DataEnvironment1.Update txtNameID.Text, txtFirstName.Text, txtLastName.Text, txtOtherNames.Text, txtDate.Text
DataEnvironment code is:
UPDATE tblNames SET nameID = NID, FirstName = FName, LastName = LName, OtherNames = OName, Dob = d23/12/1900 WHERE (nameID = NID)
Kindly if you know what is going on here give a shout and i will appreciate it so much.
Thanks
Simon
The command button cmdUpdate code is shown here:
DataEnvironment1.Update txtNameID.Text, txtFirstName.Text, txtLastName.Text, txtOtherNames.Text, txtDate.Text
DataEnvironment code is:
UPDATE tblNames SET nameID = NID, FirstName = FName, LastName = LName, OtherNames = OName, Dob = d23/12/1900 WHERE (nameID = NID)
Kindly if you know what is going on here give a shout and i will appreciate it so much.
Thanks
Simon