Computer Learning Zone CLZ Access Excel Word Windows

To be scientifically literate is to empower yourself to know when someone else is full of shit.

-Neil deGrasse Tyson
 
Home   Courses   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Courses > Access > Seminars > SQL Language > SQL Part 3 > < SQL Part 2
Back to Access SQL Seminar Part 3    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Error with SQL Views
Kevin Robertson 
          
3 years ago
When I try to use DoCmd.RunSQL with Views I get an error message (see screenshot).

This does not work.
DoCmd.RunSQL "DROP VIEW QueryName"

I also get the same error when trying to create or alter a View.
Working with tables works fine.

This is how I got around this problem.
CurrentProject.Connection.Execute "DROP VIEW QueryName"

Hope this helps someone else who may encounter the same problem.
Kevin Robertson OP  @Reply  
          
3 years ago

Richard Rost  @Reply  
           
3 years ago
Yeah, I would always use .Execute with a DROP command. In fact, I'm to the point now where I pretty much use .Execute for everything. I very seldom use .RunSQL anymore.

Thanks for sharing.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access SQL Seminar Part 3.
 

Next Unseen

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 11/13/2025 9:15:43 PM. PLT: 2s