T
texasyankee
I'm using Access Prof. 2003.
I found this tip dated 2005 from Graham R Seach, Microsoft Access MVP
Sydney, Australia. When I applied it, it stopped Access from autosaving but
now I can't get the form to save data at all.
Add a module-level variable:
Private blnOK2Save As Boolean
In the Click event for the save button, add the following code:
blnOK2Save = True
RunCommand acCmdSaveRecord
blnOk2Save = False
Then in the form's BeforeInsert and BeforeUpdate events, add the following
code:
If (blnOK2Save = False) Then Me.Undo
I have the following code ON Click for my save button.
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Can someone else help me with this?
I found this tip dated 2005 from Graham R Seach, Microsoft Access MVP
Sydney, Australia. When I applied it, it stopped Access from autosaving but
now I can't get the form to save data at all.
Add a module-level variable:
Private blnOK2Save As Boolean
In the Click event for the save button, add the following code:
blnOK2Save = True
RunCommand acCmdSaveRecord
blnOk2Save = False
Then in the form's BeforeInsert and BeforeUpdate events, add the following
code:
If (blnOK2Save = False) Then Me.Undo
I have the following code ON Click for my save button.
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Can someone else help me with this?