303factory
Registered User.
- Local time
- Today, 08:39
- Joined
- Oct 10, 2008
- Messages
- 136
I'm having trouble closing a form. My close button has the following code behind it:
Me.SIMPresent is a tix box hidden in a header. If I comment out that line the form closes fine. However if I dont I get 'this record has been changed by another user' errors (drop changes, save changes, copy to clipboard etc)
If I try to use Me.refresh or runcommand acCmdSaveRecord before the form close then the error just occurs one line earlier.
I didnt have this problem when I used an access back end its started happening now I'm using MySQL. It seems I'm unable to dirty a form by code and then close it without an error! I can dirty the form by clicking on it and typing without any problems..
Any help would be appreciated.
303
Code:
Me.SIMPresent = True
DoCmd.OpenForm "frmSIMExaminationSetup"
DoCmd.Close acForm, "frmExhibitContents"
Me.SIMPresent is a tix box hidden in a header. If I comment out that line the form closes fine. However if I dont I get 'this record has been changed by another user' errors (drop changes, save changes, copy to clipboard etc)
If I try to use Me.refresh or runcommand acCmdSaveRecord before the form close then the error just occurs one line earlier.
I didnt have this problem when I used an access back end its started happening now I'm using MySQL. It seems I'm unable to dirty a form by code and then close it without an error! I can dirty the form by clicking on it and typing without any problems..
Any help would be appreciated.
303