Something odd I just noticed on one of my forms that has a "Close MS
Access button. It seems I can't use the close button if I have wrong
data entered in any of the form's combo boxes. (I only have 2 combo
boxes and one close button on the form).
The combo boxes only allow date formats to be entered. If I enter a
non-date format I get an obvious default warning saying "The value
you entered isn't valid for this field"
My code to close the form is quite simple:
Private Sub cmdCloseForm_Click()
DoCmd.Close acForm, "frmStudentInfo", acSaveNo
End Sub
I have two questions on this issue:
1) How does one change the text on the default warning (as I can't
find a code number associated with this warning, like one can find
for errors)?
2) How can I suppress the warning when I click the close button?
Marcus
******