I have a checkox called chkdefine & textbox called definedate, I want if chkdefine on the form is checked and Definedate is not null, assign Definedate value to definedate(on the table). However if chkdefine is checked and Definedate is null, I want assign current date to definedate. the below code but it does not seem to be working, please help
If ChkDefine.Value = True And (tblpool![Definedate]) Is Not Null Then
tblpool![Definedate] = Definedate.Value
Else
tblpool![Definedate] = Date
End If
If ChkDefine.Value = True And (tblpool![Definedate]) Is Not Null Then
tblpool![Definedate] = Definedate.Value
Else
tblpool![Definedate] = Date
End If