Results 1 to 2 of 2
  1. #1
    rperrosx is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Dec 2012
    Posts
    3

    GoSub Error

    I get the following error when I bring up my Access database. What does this error mean? How do I correct it?



    The expression On Load you entered as the event property setting produced the following error: Return without GoSub.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,598
    According to one discussion I found:
    "Gosub is a branching command that isn't used in VBA. It's a leftover from procedural programming languages. It forms part of the Gosub...Return construct, so you need to search your code for the word "Return", then get rid of it."

    Hold down shift key when you open the db so code won't execute. Go to the VBA editor and fix the offending code.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 0
    Last Post: 07-16-2012, 05:42 AM
  2. Replies: 1
    Last Post: 06-06-2012, 01:28 PM
  3. Replies: 6
    Last Post: 05-30-2012, 12:32 PM
  4. Replies: 1
    Last Post: 05-11-2012, 10:59 AM
  5. Return without Gosub
    By tomk in forum Access
    Replies: 2
    Last Post: 06-11-2010, 03:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums