Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Transfer data from XL into Access: best practice

I am using VBA in Office 2003 on Windows XP.

I'm working with some legacy code that is using ODBC (ADO) to transfer ~8000
records by ~6 fields from an Excel sheet into an Access table. This procedure
takes ~10 minutes. I want to improve its efficiency.

I know there are several methods for programmatically doing this, but what
is the fastest (ODBC or JET or what)?

1. Is there still (in 2003) no equivalent to "CopyFromRecordset" into an
Access table or must I still loop thru each field to move the data using this
type of technology?

2. Is there some other alternative that is faster, such as a programmatic
copy/paste that is more expedient?

If there is an alternative to the standard loop thru, could someone please
post example code? Thanks for your input.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Transfer data from XL into Access: best practice

Why not automate Access and use the import feature.

--
Regards,
Tom Ogilvy


"quartz" wrote in message
...
I am using VBA in Office 2003 on Windows XP.

I'm working with some legacy code that is using ODBC (ADO) to transfer

~8000
records by ~6 fields from an Excel sheet into an Access table. This

procedure
takes ~10 minutes. I want to improve its efficiency.

I know there are several methods for programmatically doing this, but what
is the fastest (ODBC or JET or what)?

1. Is there still (in 2003) no equivalent to "CopyFromRecordset" into an
Access table or must I still loop thru each field to move the data using

this
type of technology?

2. Is there some other alternative that is faster, such as a programmatic
copy/paste that is more expedient?

If there is an alternative to the standard loop thru, could someone please
post example code? Thanks for your input.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 441
Default Transfer data from XL into Access: best practice

Okay, I like the sound of that. But, I'm not familiar with it. Do you have
any example code Tom?

"Tom Ogilvy" wrote:

Why not automate Access and use the import feature.

--
Regards,
Tom Ogilvy


"quartz" wrote in message
...
I am using VBA in Office 2003 on Windows XP.

I'm working with some legacy code that is using ODBC (ADO) to transfer

~8000
records by ~6 fields from an Excel sheet into an Access table. This

procedure
takes ~10 minutes. I want to improve its efficiency.

I know there are several methods for programmatically doing this, but what
is the fastest (ODBC or JET or what)?

1. Is there still (in 2003) no equivalent to "CopyFromRecordset" into an
Access table or must I still loop thru each field to move the data using

this
type of technology?

2. Is there some other alternative that is faster, such as a programmatic
copy/paste that is more expedient?

If there is an alternative to the standard loop thru, could someone please
post example code? Thanks for your input.




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
Add-Ins for iSeries Access Data Transfer in Excel 2007 suriahseth New Users to Excel 3 November 30th 09 11:53 PM
Transfer data from Excel to Access Secret Squirrel Excel Discussion (Misc queries) 1 March 27th 06 12:07 AM
Transfer cells to Access Secret Squirrel Excel Discussion (Misc queries) 0 March 22nd 06 11:16 PM
data transfer from Excel to Access but the new table stru is diff Deepa Excel Discussion (Misc queries) 0 July 7th 05 04:19 PM
Transfer of data from excel to access Chris B.[_2_] Excel Programming 0 December 9th 03 12:30 PM


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