Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dropping views in MS access

 
Piyush Tripathi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to drop a view dynamically from MS access Database but the below syntax is giving incorrect syntax error.

I am using Drop view <view Name>.
Can anybody suggest what is the way to delete a view.

Regards
 
Jan Cumps
Bartender
Posts: 2586
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to MSDN, the 2007 version knows the drop view syntax.
http://msdn.microsoft.com/en-us/library/bb177897(v=office.12).aspxThere are other people who reported the same issue, and solved it by using "DROP TABLE <viewname>"

We can help you better if you give us the exact error message.

edit jc: hyperlink fixed
 
Piyush Tripathi
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The exact error message is "Syntax error in Drop Table or Drop Index"

Regards,
Piyush
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic