PC Review


Reply
Thread Tools Rate Thread

Append Header Record to Detail

 
 
banker123
Guest
Posts: n/a
 
      13th Jul 2006
I need to append the header record to the detail records in a
hierarchical report to create a database table. I was hoping their was
a command line tool that may assist.
Thanks!

Input:
Header 1
Detail 1
Detail 2
Detail 3

Header 2
Detail 1
Detail 2

Output:
Header 1 Detail 1
Header 1 Detail 2
Header 1 Detail 3

Header 2 Detail 1
Header 2 Detail 2

 
Reply With Quote
 
 
 
 
beerwolf
Guest
Posts: n/a
 
      14th Jul 2006
banker123 wrote:

>I need to append the header record to the detail records in a
> hierarchical report to create a database table. I was hoping their was
> a command line tool that may assist.
> Thanks!
>
> Input:
> Header 1
> Detail 1
> Detail 2
> Detail 3
>
> Header 2
> Detail 1
> Detail 2
>
> Output:
> Header 1 Detail 1
> Header 1 Detail 2
> Header 1 Detail 3
>
> Header 2 Detail 1
> Header 2 Detail 2


I'm surprised that nobody has suggested a program, as this seems
to me to be a problem that others would have had before. However
I haven't found anything either, so maybe I'm being over optimistic.
I found a reasonable way of doing it with Excel, using a combination
of formulas in two columns. I think my approach could easily be
turned into a macro, but I'm no Excel guru. If you have Excel, you
would probably get some good answers in the Excel groups.

If it can be done with Excel, it could probably be done also with
Open Office. But I don't have that installed at present, so can't
test my assertion.

I *could* build it for you using C++, though it would be a bit
like using a sledgehammer to crack a walnut. It would probably
take me about 15 minutes. If you want to pursue that option
instead of using a spreadsheet, get back to me offline. My email
works if you follow the instruction in my sig.

--
beerwolf (remove numbers from email address)


 
Reply With Quote
 
Al Klein
Guest
Posts: n/a
 
      14th Jul 2006
On Fri, 14 Jul 2006 22:16:49 +1000, "beerwolf"
<(E-Mail Removed)> wrote:

>I found a reasonable way of doing it with Excel, using a combination
>of formulas in two columns. I think my approach could easily be
>turned into a macro, but I'm no Excel guru.


Turn on Macro Record. Do it. You now have a macro to do it. (I'm
not an Excel guru either, but it's a little trick I picked up to
automate Office programs.)
 
Reply With Quote
 
beerwolf
Guest
Posts: n/a
 
      14th Jul 2006
Al Klein wrote:
>
> Turn on Macro Record. Do it. You now have a macro to do it. (I'm
> not an Excel guru either, but it's a little trick I picked up to
> automate Office programs.)


I know about recording macros, but my problem is with generalising them.
For example, I record a macro to manipulate 20 rows of data. How do I
generalise it to work on 100, 1000 or 10,000 rows?
Answer: Change the macro in the Visual Basic editor. I really really
dislike Visual Basic. So I usually solve my data manipulation problems
by writing C++, because I can.

I have probably wasted many hours of my life. But I'm a happier person.

--
beerwolf (remove numbers from email address)


 
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
Append query to append lots of record with range input domibud Microsoft Access Queries 7 9th May 2008 02:26 AM
Detail record prints on top of group header subreport EllenM Microsoft Access Reports 0 28th Dec 2007 03:46 PM
create a new record and show detail form with new record displayed ryan Microsoft VB .NET 0 25th Jul 2007 06:19 PM
can't append all record in the append query ched_sen@yahoo.com Microsoft Access Getting Started 2 21st Nov 2005 05:21 PM
Remove record from detail into header =?Utf-8?B?Um9u?= Microsoft Access Reports 0 5th Feb 2005 11:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:53 PM.