I have a active xcalendar on a form. On click it updates a text box on the form and updates a tbale with the date. i want to put a button on the form that closes the form only when the date in the text box = the calender. IF the text box is blank, then I want a message to appear. the code im trying to use is. Im just learrning so apologises if the code looks stupid. Thanks
Private Sub Command9_Click()
If dateselect = ActiveXCtl0 Then
DoCmd.Close
End If
If dateselect = "" Then
MsgBox "Date Validation", vbInformation, "Blank Date"
End If
End Sub
Private Sub Command9_Click()
If dateselect = ActiveXCtl0 Then
DoCmd.Close
End If
If dateselect = "" Then
MsgBox "Date Validation", vbInformation, "Blank Date"
End If
End Sub