Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default How do I Append excel data to a Access database table in a excel macro?

I would like to appended my excel data to a access database table. I
can manualy do this but I need to programmatly do it. I also must
avoid the message "you are about to append ??? records".
Thanks for your help.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default How do I Append excel data to a Access database table in a excel m

Pete,

The best way I have found (and the fastest - runs faster than ADO) is to
copy the source data into an array, write this into a properly constructed
CSV text file using sequential access (Open...For Append), then automate
Access to exploit its TransferText method.

Depending on how clean your source data in Excel is, this task is not all
that easy, especially when appending since all of your columns and data types
must be absolutely perfect.

The method I described above comes from hundreds of different projects I
have encountered over the years. And I have found through trial and error
that the above described method is most reliable - i.e. works every time.

HTH/

"Pete" wrote:

I would like to appended my excel data to a access database table. I
can manualy do this but I need to programmatly do it. I also must
avoid the message "you are about to append ??? records".
Thanks for your help.


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
Downloading Access database table into Excel (VB) Steve Excel Discussion (Misc queries) 5 October 3rd 08 08:59 PM
Excel Pivot Table connected to an Access Database Data Source Alex Zimmerhaven Excel Discussion (Misc queries) 2 June 10th 08 03:04 AM
use vba in excel to append data in access sakijung[_2_] Excel Programming 0 April 7th 04 07:16 AM
Append Data In Worksheet To Access Table Martin[_14_] Excel Programming 4 December 3rd 03 11:52 AM
Append Data To Access Table Martin[_14_] Excel Programming 3 December 3rd 03 08:33 AM


All times are GMT +1. The time now is 05:28 PM.

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

About Us

"It's about Microsoft Excel"