phishman00
MIS
Running Access 97 on NT4 SP6.
I do not want users hitting the "X" to close a form, but when I try to disable it using the closebutton property or by setting the close button to "no" in the form properties with the window maximized, that little "X" is hanging around. If the window is not maximized, the close button is not available.
I have special validation code that checks fields on the form prior to closing the form. No matter what I do, if the user clicks the "X" Access will generate the message:
Microsoft Access
You can't save this record at this time. Microsoft Access may have encountered an error while trying to save a record. If you close this object now, the data changes may be lost.
Do you want to close the Database object anyway?
This error is generated after the Form_BeforeUpdate event which I attempt to cancel but still recieve the Access error message about saving a record (Didn't I cancel the record save already?).
This app is distributed to hundreds of computers with different screen resolutions so the window must be maximized, but I do not want them seeing the message as these people are 100% computer illiterate and will call me as soon as they see that message. The other problem is that this message has no error number for me to trap but still appears even with "SetWarnings = No".
Any assistance is supremely appreciated.
I do not want users hitting the "X" to close a form, but when I try to disable it using the closebutton property or by setting the close button to "no" in the form properties with the window maximized, that little "X" is hanging around. If the window is not maximized, the close button is not available.
I have special validation code that checks fields on the form prior to closing the form. No matter what I do, if the user clicks the "X" Access will generate the message:
Microsoft Access
You can't save this record at this time. Microsoft Access may have encountered an error while trying to save a record. If you close this object now, the data changes may be lost.
Do you want to close the Database object anyway?
This error is generated after the Form_BeforeUpdate event which I attempt to cancel but still recieve the Access error message about saving a record (Didn't I cancel the record save already?).
This app is distributed to hundreds of computers with different screen resolutions so the window must be maximized, but I do not want them seeing the message as these people are 100% computer illiterate and will call me as soon as they see that message. The other problem is that this message has no error number for me to trap but still appears even with "SetWarnings = No".
Any assistance is supremely appreciated.