Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35
Default Excel to Access - ADO?

I'm using ADO to export data from Excel to Access and it's working fine. I
need to know how to automatically delete all records in the Access database
prior to running my macro?

Thanks in advance.

Donnie


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 811
Default Excel to Access - ADO?

"Donnie Stone" wrote in message
...
I'm using ADO to export data from Excel to Access and it's working fine.

I
need to know how to automatically delete all records in the Access

database
prior to running my macro?


Hi Donnie,

There isn't any simple way to delete the entire contents of a database
all at once that I know of. You have to do it one table at a time, by
executing individual SQL statements like the following:

DELETE FROM MyTable1;
DELETE FROM MyTable2;
...etc...

until you've cleared all the tables in your database. Note that if you have
any declarative referential integrity set up among your tables, you have to
clear the tables in such an order that it doesn't violate any of those
constraints.

--
Rob Bovey, MCSE, MCSD, Excel MVP
Application Professionals
http://www.appspro.com/

* Please post all replies to this newsgroup *
* I delete all unsolicited e-mail responses *



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
Query from Access into Excel cause Access to go to read only T Stephens Excel Discussion (Misc queries) 0 March 24th 09 04:17 PM
Can Excel access data from Access?! Al Excel Discussion (Misc queries) 5 April 5th 08 03:52 PM
Access Form In An Access Report (SubForm) Question Gary Links and Linking in Excel 0 January 27th 06 05:54 AM
export access to excel. change access & update excel at same time fastcar Excel Discussion (Misc queries) 0 June 24th 05 09:27 PM
How to access ACCESS from Excel! Gordon Cartwright[_2_] Excel Programming 3 November 8th 03 11:50 AM


All times are GMT +1. The time now is 01:01 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"