If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Copying a Table in Access VBA

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-04, 11:37
ontheDB ontheDB is offline
Registered User
 
Join Date: Sep 2003
Posts: 80
Copying a Table in Access VBA

Hi,
I want to have a macro run in VBA
where I copy a MS Access table and rename it.

Essentially, the code goes as follows:

****************************

1. Do data manipulation
2. Delete table "Table1"
3. Copy table.
4. Rename table to "Table1"


**************

This code runs in a loop.

I could do it by using "Select/INTO" statements.
But I assume there's a faster and more effective method.


Also, the data manipulations are based on a query which is based on the
renamed table "Table1". Will the integrity hold up for each loop of the code.
Reply With Quote
  #2 (permalink)  
Old 01-10-04, 08:15
Xl-Dennis Xl-Dennis is offline
Registered User
 
Join Date: Dec 2003
Location: Östersund Sweden
Posts: 60
Hi,

I´m not clear with Your situation.

Do You want a VBA-solution in Excel to do the job?

Yes, it is possible except for deleting a table.

Please let us know more about it.

Kind regards,
Dennis
__________________
Kind regards,
Dennis
Reply With Quote
  #3 (permalink)  
Old 01-10-04, 11:09
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Look at the help for the docmd object - there is a method called runmacro.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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