In the following code snap shot I am trying to put the Date data in the variable HitD.
It works fine when there is date data in the field, but does not work when the field in null and I receive a type mismatch error.
Dim HitD As Date
Form_frmMain.HitDate.SetFocus
HitD = Form_frmMain.HitDate.Text
' any advice is much appreciated
It works fine when there is date data in the field, but does not work when the field in null and I receive a type mismatch error.
Dim HitD As Date
Form_frmMain.HitDate.SetFocus
HitD = Form_frmMain.HitDate.Text
' any advice is much appreciated