Access 2007-2013
Access 2000-2003
Access Seminars
TechHelp Support
Tips & Tricks
Access Forum
Course Index
Topic Glossary
Insider Circle
 
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
 

Forums     

Microsoft Access Forum
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on Google Plus Richard Rost on LinkedIn Email Richard Rost

 
This forum is for the discussion of Microsoft Access.

Access is my personal specialty. Have questions? Comments? Want to discuss how to do something? Post it here. Also, I get a LOT of questions sent to me in Email from people around the world. I'll post the interesting ones in here. Feel free to comment on them.

Click Here To Subscribe to this forum and receive an email update whenever new posts are added, just scroll down to the bottom of this page and enter your email address in the comment form.

Permanent Link
Keywords: microsoft access forum
Post New Topic

Read Return without gosub by Bea A @ Sat 6/17
How to recompile in the VBA window?


Reply from Alex Hedley:

Open your MS Access database

Press CTRL+G (or ATL+F11) to enter the VBE (Visual Basic Editor)

On the Standard Toolbar, Goto Debug -> Compile "YourDatabaseName"
Show Just This Thread        Post Reply
Read Return without gosub by Bea A @ Fri 6/16
Nothing changed.  I have now unlinked the table and made a new combo and it worked.  After closing the data base and opening and trying again, I get the no sub again. Evidently the combo box gets corrupted when I close the data base.


Reply from Alex Hedley:

If you compile the db in the VBA window does it produce an error?
Show Just This Thread        Post Reply
Read Return without gosub by Bea A @ Sat 6/10
I didn't code this, I used the combo box wizard.  The list I was selecting from was a linked table from another data base on my computer.  I could set up a new combo box and it sometimes worked.


Reply from Alex Hedley:

Could anything else have changed?
Show Just This Thread        Post Reply
Read Return without gosub by Bea A @ Mon 6/5
I get this error when trying to look up names on an unbound combo box.  It has worked for forever and suddenly stopped working.


Reply from Alex Hedley:

Could you share your code?
Show Just This Thread        Post Reply
Read Return without GoSub Error by Phil T @ 3/30/2015
Hello,

I'm creating a database in Access 2010 and have encountered the dreaded 'Return without GoSub' error.  It shows up intermittently when I use a button in one form that I created to open another form.  The button worked great for a long time and then started generating the error for no apparent reason.

I searched for obvious errors and even re-created the button/deleted the old but no luck.  While looking some more, it suddenly went away and normal function returned.  A few minutes later, it returned and is still there.

I checked the Tips section and much of the Forum section but was not able to find anything on the topic.

Some online research indicated that this is likely a result of one or more common bugs in MS's Auto Correct feature.  The recommendation is to turn off Auto Correct(File | Options | Current Database, scroll down to Name AutoCorrect Options) and, if necessary, create a new database and then import everything from my existing database to the new.  Another recommendation is to decompile/recompile.  Before I do any of this, I wanted to get your advice on the issue and recommendations.

Thanks in advance.

Phil T



Reply from Alex Hedley:

I usually compile the app through the VBA Editor.
If that doesn't fix it, close then open Access.
If that doesn't work reboot the machine, just frees up any memory.
Build the Form again, if it's not too complex.
Then if that doesn't work the import objects from current db to blank new.
Show Just This Thread        Post Reply
Read Return without GoSub by David S @ 7/15/2013
Thank you for those suggestions.  Compact and Repair has not worked (I have tried it twice), and the vba is RequeryForm all one word which somehow the spelling checker converted into two words!
It was originally taken straight from one of your lessons and I use it in another database where it still works perfectly!  What is annoying is that it worked perfectly in the instant database for some considerable time.
Many thanks for your suggestions.
David
Show Just This Thread        Post Reply
Read Return without GoSub by David S @ 7/12/2013
Good Morning,
With an accounts database that I have been using consistently for several years without problem, I am recently and suddenly presented with the following warning message:
The expression After Update you entered as the event property setting produced the following error: Return without GoSub.
* The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure].
* There may have been an error evaluating the function, event, or macro.

When I open the Main Form a field which shows the total of all columns is filled with # signs.

I get the above error message if I try to filter any column.

However if I enter Design View, click on any of the filter combo boxes, click on the Property, Event tab and on the After Update ellipsis to get the vba edit and then exit out of the vba edit (with or without saving it first) the Main Form is correctly presented with the total showing properly and all filter combos working properly.
Any idea how to fix this?
I suspect it is something to do with getting a particular sub-routine into memory, and that sub-routine is called "Requery Form".
Can I get that sub-routine into memory when I open the database?
Thank you for all your help
David


Reply from Richard Rost:

David, I assume you've tried a COMPACT & REPAIR.

Did you name your own VBA subroutine "requery" because if so, that's a reserved word in Access. Try renaming it.

Show Just This Thread        Post Reply

Collapse All Topics

 

Post Your Comments or Subscribe
    If you would like to be notified of new posts on this forum,
    just enter your email address below. It will be kept private.
 
If you just want to subscribe to get email updates when this forum is updated, then enter your name and email address and check the Notify Me box below. If you would optionally like to add your comments below to be posted, they are welcome.
 
  Your Name:  Required
  Your Email:  NOT Public
  Subject:
  Comments:

 

Sorry about this step. It's just to keep the spam bots away:
  Verify: What is 3+4:
  
  Notify me when the this forum is updated
  Remember Me for my next comments
  
 
 
Please do not use this form for Customer Service inquiries! If you have questions about your account, shipping info, courses you've ordered, need passwords, etc. please use the Customer Service Center instead.

I value your comments. They will be displayed on this page (above). Your name will be displayed, but your email address will not be.
As always, I promise to never give away your personal information to anyone else, ever.

NOTE: If you don't leave your name and email address, DON'T expect a reply. I can't promise a personal reply to everyone who posts here. I TRY my best, but I cannot guarantee it. If you don't leave your real name and email address, I won't even bother. I usually just hit DELETE. -Richard

 

 

You may want to read these articles from the 599CD News:

6/7/2017Microsoft Access Developer 1
6/6/2017Access Developer 1 is Finished
5/18/2017Microsoft Access Advanced 6
5/17/2017Access Advanced 6 is Online
4/9/2017Microsoft Access Advanced 5
4/9/2017Microsoft Access Advanced 4
4/4/2017Microsoft Drops Access Web Apps
4/3/2017Access Advanced 5 is finished
3/26/2017Access Advanced 4 is Finished and Online
3/19/2017Microsoft Access Advanced 3
 

Learn
 
Accessindex
Excelindex
Wordindex
Windowsindex
PowerPointindex
Photoshopindex
Visual Basicindex
ASPindex
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP