By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,480 Members | 1,229 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,480 IT Pros & Developers. It's quick & easy.

Unbound form throwing error on close.

P: n/a
I have an unbound form with a textbox with an input mask 00\-00000;;_
Putting some data into the text box and then trying to close it [via
the close button] throws the 'didnt match input mask' warning, and if
I click ok on that it brings up an error:
"You can't save this record at this time." ..."data changes will be
lost...want to close...anyway?" [YES][NO]

It doesn't give me an error number, and I don't have any records to
save.
What can I do to capture this error?
Nov 13 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
You can catch the error in the Error event of the Form.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"isaphrael" <id******@yahoo.com> wrote in message
news:54**************************@posting.google.c om...
I have an unbound form with a textbox with an input mask 00\-00000;;_
Putting some data into the text box and then trying to close it [via
the close button] throws the 'didnt match input mask' warning, and if
I click ok on that it brings up an error:
"You can't save this record at this time." ..."data changes will be
lost...want to close...anyway?" [YES][NO]

It doesn't give me an error number, and I don't have any records to
save.
What can I do to capture this error?

Nov 13 '05 #2

P: n/a
Wow, thanks. I suppose I really should have known that, shouldn't I?

You can catch the error in the Error event of the Form.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

Nov 13 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.