Solved

Delete Access2k table from VB

Posted on 2002-07-17
8
140 Views
Last Modified: 2010-05-02
a code snippet any1 :o)
0
Comment
Question by:djdidge
  • 3
  • 3
  • 2
8 Comments
 

Expert Comment

by:Amitabh
ID: 7159038

strsql = "delete from NCT_mast"
prs.Open strsql, conn

hope this is what u want
0
 

Expert Comment

by:Amitabh
ID: 7159041
here NCT_Mast is the table u want to delete and conn is the connection with ur access2K mdb.
0
 
LVL 14

Accepted Solution

by:
ajexpert earned 75 total points
ID: 7159053
if you want to drop table then following snippet may help


cn.execute " DROP table <your tablename>"
0
NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

 
LVL 2

Author Comment

by:djdidge
ID: 7159059
thanks for your reply...but it doesnt seem to do anything
0
 
LVL 2

Author Comment

by:djdidge
ID: 7159061
is DROP the term used to remove a table from the DB? (not the records)
0
 

Expert Comment

by:Amitabh
ID: 7159064
yes if u want to remove the table use drop as aj said.
0
 
LVL 14

Expert Comment

by:ajexpert
ID: 7159071
does it gave any error.  if so, what is the error message
0
 
LVL 2

Author Comment

by:djdidge
ID: 7159081
Thanks both for responding quickly!

ajexpert you get the points coz "DROP table" worked for me


Cheers
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question