Why do I get a
"Return without GoSub"
error when using subforms in Access 2007?
Why do I get a
"Return without GoSub"
error when using subforms in Access 2007?
This can occur when there is a Form_Load()
event in the subform, but not the main form. Try adding an empty Form_Load()
event to the main form.
The most likely reason for this error is that the project has become corrupt. You should decompile, instructions are here: Debug a bad DLL calling convention error
First, ensure that you have switched off Name Autocorrect: http://allenbrowne.com/bug-03.html and ensure that you are not missing any references.
I found a useful solution (in my case) for that same issue at http://www.fmsinc.com/microsoftaccess/performance/decompile.asp . It worked as a charm for me. HTH Phil
Performing a decompile of the VBA code and recompiling followed by compacting my database resolved the issue for me.
I had something similar (not specifically in VBA, but with using a form to update a subform). I just added a "StopAllMacros" step at the end of the screen updating object and it seemed to work.
© 2022 - 2024 — McMap. All rights reserved.