PC Review


Reply
Thread Tools Rate Thread

Automate transferring fields to an Excel template.

 
 
Cindy Grover
Guest
Posts: n/a
 
      24th Jun 2004
I have an Excel template with 15 headers. I need to move
the fields of the Access recordset to the correct header.
How would I write an array in a module to do this. Also
the records are by region.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TURX?=
Guest
Posts: n/a
 
      24th Jun 2004
You'd be better off creating a recordset that selects the columns in the correct order, then transferring the data in one big chunk.

Check out this link (which I only just found out about yesterday):

http://www.mvps.org/access/modules/mdl0035.htm

"Cindy Grover" wrote:

> I have an Excel template with 15 headers. I need to move
> the fields of the Access recordset to the correct header.
> How would I write an array in a module to do this. Also
> the records are by region.
>

 
Reply With Quote
 
Cindy Grovr
Guest
Posts: n/a
 
      24th Jun 2004

>-----Original Message-----
>You'd be better off creating a recordset that selects the

columns in the correct order, then transferring the data
in one big chunk.
>
>Check out this link (which I only just found out about

yesterday):
>
>http://www.mvps.org/access/modules/mdl0035.htm
>
>"Cindy Grover" wrote:
>
>> I have an Excel template with 15 headers. I need to

move
>> the fields of the Access recordset to the correct

header.
>> How would I write an array in a module to do this.

Also
>> the records are by region.
>>

>.
>Thanks,but I can't tell what is going on with that code.

I will try another source.
 
Reply With Quote
 
Jamie Collins
Guest
Posts: n/a
 
      25th Jun 2004
MDW <(E-Mail Removed)> wrote ...

> You'd be better off creating a recordset that selects the
> columns in the correct order, then transferring the data
> in one big chunk.


No recordset required if you can use a query like this:

INSERT INTO
[Excel 8.0;Database=C:\MyTemplate.xlt;].MyExcelTable
(MyXLCol1, MyXLCol2, MyXLCol3)
SELECT
MyJetCol1 AS MyXLCol1,
MyJetCol2 AS MyXLCol2,
MyJetCol3 AS MyXLCol3
FROM MyJetTable
;

Jamie.

--
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I automate a template with form fields =?Utf-8?B?bWVsZHJhcGU=?= Microsoft Word Document Management 1 15th Dec 2005 07:28 PM
Weirdness in date fields: Transferring data from excel Veli Izzet Microsoft Access 7 13th Aug 2005 07:23 AM
transferring checkbook template to excel =?Utf-8?B?amVhbg==?= Microsoft Excel Worksheet Functions 1 31st May 2005 03:41 AM
Transferring excel fields to outlook calender fields Kevin Lancaster via OfficeKB.com Microsoft Outlook Calendar 1 3rd Feb 2005 10:14 PM
Excel 97 - Template Wizard - Transferring Data Richard Wilding Microsoft Excel Misc 0 3rd Sep 2003 02:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:22 AM.