G
Guest
Hi
I have a form open & have a Text Box that has an "Input Mask". If a user enters invalid data for that text box, a defualt Access Msgbox comes up saying that it is invalid
I know how to stop this; by using the Private Sub Form_Error(DataErr As Integer, Response As Integer
captuiring the Err # & setting the "Response = acDataErrContinue", which works
However this is where I need help on..
If the data is invalid, & the user Clicks on the X to close out the form, the following Access Warning Msgbox appears..
"Microsoft Access may have encountered an arror while trying to save a record. If you close this object now, the data changes you made will be lost. Do you want to close the database object now ?" (with Yes / No buttons
I want to get rid of this so Access will NOT display this. To either keep the form open or just close it down, but not to display this forcing the user to click on Yes or No
I tried: DoCmd.SetWarnings False which doesnt work
Is their any way to get rid of this
Any help would be greatly appreciated
Thank you
Jef
(e-mail address removed)
I have a form open & have a Text Box that has an "Input Mask". If a user enters invalid data for that text box, a defualt Access Msgbox comes up saying that it is invalid
I know how to stop this; by using the Private Sub Form_Error(DataErr As Integer, Response As Integer
captuiring the Err # & setting the "Response = acDataErrContinue", which works
However this is where I need help on..
If the data is invalid, & the user Clicks on the X to close out the form, the following Access Warning Msgbox appears..
"Microsoft Access may have encountered an arror while trying to save a record. If you close this object now, the data changes you made will be lost. Do you want to close the database object now ?" (with Yes / No buttons
I want to get rid of this so Access will NOT display this. To either keep the form open or just close it down, but not to display this forcing the user to click on Yes or No
I tried: DoCmd.SetWarnings False which doesnt work
Is their any way to get rid of this
Any help would be greatly appreciated
Thank you
Jef
(e-mail address removed)