Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Deleting An Access Table

How can I delete an access table using VBA From Excel, I
have tried
set db = dao.dbEngine.opendatabase(dataPath)
db.TableDefs.Delete TableName
This will only delete Linked Tables
TIA
Charles

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Deleting An Access Table

"Charles" wrote ...

How can I delete an access table using VBA From Excel, I
have tried
set db = dao.dbEngine.opendatabase(dataPath)
db.TableDefs.Delete TableName
This will only delete Linked Tables


Try:

<<connection.Execute "DROP TABLE " & TableName & ";"

Jamie.

--
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
In EXCEL, access denied when deleting read only Richard G. Excel Discussion (Misc queries) 0 December 31st 05 05:54 PM
Deleting Records in a table Secret Squirrel Excel Discussion (Misc queries) 5 December 9th 05 03:02 PM
Multiple MS Access table sources for pivot table fbj Excel Discussion (Misc queries) 5 August 15th 05 03:41 PM
Linking a table in Access to a table in Excel using MS Query Diana[_5_] Excel Programming 1 January 16th 04 09:43 PM
Deleting records from access using ADO in through Excel Chris Dunigan Excel Programming 8 December 11th 03 09:38 AM


All times are GMT +1. The time now is 07:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"