Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Convert Query SQL to VBA    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
SetWarnings Reversed
James Gray 
     
5 years ago
I noticed that the VBA code constructed via the utility has the Set Warnings True statement first instead of Set Warning False.   I think the problem is with the construction of Status function.  I fixed it by changing the order of construction for StatusBox to: StatusBox = StatusBox & vbNewLine & S instead of: StatusBox = s & vbnewline & Statusbox.  Do I have this correct?
Richard Rost  @Reply  
          
5 years ago
You may indeed be correct. I didn't notice it. I'll check the video when I have some free time, but what you're saying sounds about right. Thanks. :)
Scott Axton  @Reply  
        
5 years ago
I can confirm that this is the case.  I just noticed it as well.
It is because of how the string is written to StatusBox.  The last command coming in at the top.

It's difficult to see because in the vba code it is written correctly the way access would normally treat it.
  Set Warnings False
  DoStuff
  SetWarnings True
Now read the same above from the bottom up
Richard Rost  @Reply  
          
5 years ago
Silly me. :) Thanks.
Justin Hull  @Reply  
    
4 years ago
I Noticed this too. Just found this the other day, thank you for this. this helps soooooo much.
I just ended up swapping the true and false in the code under the form and it now puts it on the screen correctly

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Convert Query SQL to VBA.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/21/2026 11:02:44 PM. PLT: 0s