Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Is there a CopyToRecordset (Oppisite of CopyFromRecordset)

Looking for an elegant way to take a spreadsheet range and update certain
fields in an Access table. I'm sure I could loop through the rows and create
insert statements, but was wondering if there was something equivalent to the
oppisite of CopyFromRecordset, where an object turns a range with column
headings into a recordset.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Is there a CopyToRecordset (Oppisite of CopyFromRecordset)

If you have access to the database (no pun intended!) it is easier to do it
from the Access side (which you could run through automation from Excel).
Just link in your data range as a table (external data, linked not imported)
and set up update and/or append queries to find matching (or unmatched)
records and add the new info.

--
- K Dales


"sisyphus" wrote:

Looking for an elegant way to take a spreadsheet range and update certain
fields in an Access table. I'm sure I could loop through the rows and create
insert statements, but was wondering if there was something equivalent to the
oppisite of CopyFromRecordset, where an object turns a range with column
headings into a recordset.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Is there a CopyToRecordset (Oppisite of CopyFromRecordset)

Just getting back to this.

I do have access to the d/b. But I am generating and populating worksheets
from a template that are then sent out to be updated. I don't think I can
link the template. Also the update worksheet is generated as a new worksheet
each time (thus the use of the template). Am I missing something, or
misunderstanding your answer?

"K Dales" wrote:

If you have access to the database (no pun intended!) it is easier to do it
from the Access side (which you could run through automation from Excel).
Just link in your data range as a table (external data, linked not imported)
and set up update and/or append queries to find matching (or unmatched)
records and add the new info.

--
- K Dales


"sisyphus" wrote:

Looking for an elegant way to take a spreadsheet range and update certain
fields in an Access table. I'm sure I could loop through the rows and create
insert statements, but was wondering if there was something equivalent to the
oppisite of CopyFromRecordset, where an object turns a range with column
headings into a recordset.

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
CopyfromRecordset MattShoreson[_67_] Excel Programming 2 March 15th 06 01:36 PM
CopyFromRecordset Ernst Guckel[_4_] Excel Programming 3 May 1st 05 08:03 PM
CopyFromRecordset does nothing Hafeez Excel Programming 2 August 13th 04 07:20 PM
CopyFromRecordset does nothing E Harris Excel Programming 5 January 8th 04 04:29 PM
Copyfromrecordset Bug ? news.btx.dtag.de Excel Programming 1 August 1st 03 07:44 PM


All times are GMT +1. The time now is 01:10 AM.

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"