Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access SQL Server Lessons    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
VBA Action Queries w SQL Svr
Jennifer Neighbors 
     
2 years ago
Following my upload of tables to SQL Server, action queries in my Access VBA code throw an error related to not having the dbSeeChanges option specified. This is NOT for a recordset (which Richard specifies requires the dbSeeChanges option.) These are simple action queries in VBA. They seem to work after appending a comma and the term "dbSeeChanges." Is this something new since the SQL Server course was created?
Kevin Yip  @Reply  
     
2 years ago
This has been the case as far as I can remember (decades maybe): the dbSeeChanges option is required if an SQL Server table has an "identity" column, stated verbatim in the error message pictured below.  This is true for both recordsets and action queries.  For instance, the following action query will cause a run-time pictured below if the table has an identity column and the dbSeeChanges option is omitted:

     CurentDb.Execute "DELETE FROM Table1 WHERE field1='abc'", dbSeeChanges

I don't have access to any of Richard's paid courses.  Maybe he mentions it somewhere else in his courses.

An identity column in SQL Server is an autonumber field that is also a primary key field.  You can have a PK field that is not autonumber, and it will not need the dbSeeChanges option.
Kevin Yip  @Reply  
     
2 years ago

Kevin Yip  @Reply  
     
2 years ago
By the way, even if you run CurentDb.Execute, the error will still say "OpenRecordset" as pictured above.  Maybe that's where the confusion comes from?
Richard Rost  @Reply  
          
2 years ago
Could have sworn I mentioned that somewhere in the seminar...

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access SQL Server Lessons.
 

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: 4/30/2026 3:42:57 PM. PLT: 0s