Export to Excel a linked 1:Many Table

S

Sidney

Hi

I have an Access 07 database to track Issues. I have 1 table that has the
basic Issues information (tblIssues). Linked to this is another table
(tblNotes) that allows users to enter multiple notes for each issue as
progress is being made. In the tblNotes, I have 3 key fields that I need to
export: NoteEnteredBy, NoteDate, and the Note.

I am trying to export the tblIssue to Excel with all of the associated
notes. I have no trouble exporting the tblIssue - I just can't figure out
how to also export the associated Notes. Ideally, I would like the Notes
cell in Excel to be concatenated with the date, author, and note. For
example, below is an outline of what I would like to see:

Header Row: IssueID IssueTitle IssuePriority Notes
Data: 1 Test High [date -
Sid] This is note 1.

[date - Jane] This is note 2.

I hope this makes sense. Does anybody have any code that can do this? I am
currently using the TransferSpreadsheet to export the tblIssues.

Thanks
Sidney
 
J

Jeanette Cunningham

Sidney,
here is a link to a sample database that will join up (concatenate) the
notes for each issue.


Jeanette Cunningham -- Melbourne Victoria Australia


Sidney said:
Hi

I have an Access 07 database to track Issues. I have 1 table that has the
basic Issues information (tblIssues). Linked to this is another table
(tblNotes) that allows users to enter multiple notes for each issue as
progress is being made. In the tblNotes, I have 3 key fields that I need
to
export: NoteEnteredBy, NoteDate, and the Note.
I am trying to export the tblIssue to Excel with all of the associated
notes. I have no trouble exporting the tblIssue - I just can't figure out
how to also export the associated Notes. Ideally, I would like the Notes
cell in Excel to be concatenated with the date, author, and note. For
example, below is an outline of what I would like to see:

Header Row: IssueID IssueTitle IssuePriority Notes
Data: 1 Test High
[date -
Sid] This is note 1.

[date - Jane] This is note 2.

I hope this makes sense. Does anybody have any code that can do this? I
am
currently using the TransferSpreadsheet to export the tblIssues.

Thanks
Sidney
 
K

Klatuu

You could export a query that joins the tables and includes the fields you
need. You can even use a calculated control to concatenate the fields from
the notes table.
 
S

Sidney

Hi Jeanette

Thanks for the reply. I did not find a link though to the sample database.
Could you please resend?

Thanks
Sidney

Jeanette Cunningham said:
Sidney,
here is a link to a sample database that will join up (concatenate) the
notes for each issue.


Jeanette Cunningham -- Melbourne Victoria Australia


Sidney said:
Hi

I have an Access 07 database to track Issues. I have 1 table that has the
basic Issues information (tblIssues). Linked to this is another table
(tblNotes) that allows users to enter multiple notes for each issue as
progress is being made. In the tblNotes, I have 3 key fields that I need
to
export: NoteEnteredBy, NoteDate, and the Note.
I am trying to export the tblIssue to Excel with all of the associated
notes. I have no trouble exporting the tblIssue - I just can't figure out
how to also export the associated Notes. Ideally, I would like the Notes
cell in Excel to be concatenated with the date, author, and note. For
example, below is an outline of what I would like to see:

Header Row: IssueID IssueTitle IssuePriority Notes
Data: 1 Test High
[date -
Sid] This is note 1.

[date - Jane] This is note 2.

I hope this makes sense. Does anybody have any code that can do this? I
am
currently using the TransferSpreadsheet to export the tblIssues.

Thanks
Sidney
 
J

Jeanette Cunningham

Sidney here is the link - sorry it didn't paste into the last reply.

http://www.rogersaccesslibrary.com/...Generic Function To Concatenate Child Records'


Jeanette Cunningham -- Melbourne Victoria Australia


Sidney said:
Hi Jeanette

Thanks for the reply. I did not find a link though to the sample
database.
Could you please resend?

Thanks
Sidney

Jeanette Cunningham said:
Sidney,
here is a link to a sample database that will join up (concatenate) the
notes for each issue.


Jeanette Cunningham -- Melbourne Victoria Australia


Sidney said:
Hi

I have an Access 07 database to track Issues. I have 1 table that has
the
basic Issues information (tblIssues). Linked to this is another table
(tblNotes) that allows users to enter multiple notes for each issue as
progress is being made. In the tblNotes, I have 3 key fields that I
need
to
export: NoteEnteredBy, NoteDate, and the Note.
I am trying to export the tblIssue to Excel with all of the associated
notes. I have no trouble exporting the tblIssue - I just can't figure
out
how to also export the associated Notes. Ideally, I would like the
Notes
cell in Excel to be concatenated with the date, author, and note. For
example, below is an outline of what I would like to see:

Header Row: IssueID IssueTitle IssuePriority Notes
Data: 1 Test High
[date -
Sid] This is note 1.

[date - Jane] This is note 2.

I hope this makes sense. Does anybody have any code that can do this?
I
am
currently using the TransferSpreadsheet to export the tblIssues.

Thanks
Sidney
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top