What does this macro error mean?

G

gagecres

I just made a change to my database and now I am getting an error message
when I open it. The message says: "The expression OnCurrent you entered as
the event property setting produced the following error: Return without
GoSub."

What does this message mean?
 
J

Jeff Boyce

If you're not sure what you changed, how are you planning to un-do the
change?

The error message suggests that you have a form that has an OnCurrent event.
Can you find that one?

The message also suggests that the code in that OnCurrent event has a
<Return> statement, but nothing that called it in the first place. Can you
find that?

If you can find the OnCurrent event that's throwing the error, consider
posting the SQL statement for that event. That would give folks a bit more
to go on...

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.
 
D

Dorian

I'm guessing that some VB code you have in the Current event, has invalid
code in it.
-- Dorian
"Give someone a fish and they eat for a day; teach someone to fish and they
eat for a lifetime".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top