I dont know what I did. When I opened my database the swithboard is not poping up and i get the error Return without GoSub. I did not do anything to the swithboard does anyone know what might be the cause?
Check in your code (I.e. Open Event of the Switchboard) to see if it has a keyword "Return" in it. If it does, look within the procedure to see if you have a Statement "GoSub <Line>", and if it doesn't, then that is where your problem lies at.
To make your search easier, you can bring up the Find Dialog box within VBA Editor, and type in the word, "Return" (without the double quotes), and search in each of the modules or the entire project even.
Note the above syntaxes. <Line> and <Line2> are line labels within VBA. However, given now days that we can call on Subprocedures and Functions directly, the GoSub...Return bit of coding is obsolete and is not advised to use any more. Not only that, but the "GoSub <Line>" and "Return" line MUST be within the same procedure.
Ronald R. Dodge, Jr.
Production Statistician
Master MOUS 2000
When the going gets tough, the tough gets going.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.