I am currently working on an existing MS Access 03 data base that has been working perfectly for years. I have been requested to provide the userS the option to select a viewing option on a form, i.e. open as read only -v- edit.
The form currently has error trapping code everywhere and works fine when the form is opened with (current code):
However when the form is triggered to opened with (new code):
I get the error code 3021 no current record upon the CLOSE of the form only. I have tried to debug this with no success. The 3021 error is triggered BEFORE any of the vb code is triggered. I have looked extensively for a solution and have yet to fine one.
Any help would be appreciated.
The form currently has error trapping code everywhere and works fine when the form is opened with (current code):
Code:
DoCmd.OpenForm strFormName, acNormal, , , [B]acFormEdit[/B], acWindowNormal, strSQL3
Code:
DoCmd.OpenForm strFormName, acNormal, , , [B]acFormReadOnly[/B], acWindowNormal, strSQL3
Any help would be appreciated.
Comment