B
bindurajeesh
I have the following code on a button on a form:
DoCmd.RunSQL "update tblMember set HealProjectFormSigned = " &
chbHealProjectFormSigned & ", DateProjectFormSigned = " &
CDate(txtDateProjectFormSigned) & _
" where membernumber = " & cmbMemberNumber.Value
When the button is run the data that is entered in the table is 12/12/1889
even though the data entered on the form was 9/12/08. I have changed the
field data type to text and then the data is entered as a scientific number,
I have changed the field back to date/time and directily entered data in the
field while in the table and it stays at 9/12/08. so what is the problem
with the form? the text box in question has a format of short date. Thank
you in advance
DoCmd.RunSQL "update tblMember set HealProjectFormSigned = " &
chbHealProjectFormSigned & ", DateProjectFormSigned = " &
CDate(txtDateProjectFormSigned) & _
" where membernumber = " & cmbMemberNumber.Value
When the button is run the data that is entered in the table is 12/12/1889
even though the data entered on the form was 9/12/08. I have changed the
field data type to text and then the data is entered as a scientific number,
I have changed the field back to date/time and directily entered data in the
field while in the table and it stays at 9/12/08. so what is the problem
with the form? the text box in question has a format of short date. Thank
you in advance