Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining Text Records

Status
Not open for further replies.

samevans35

Technical User
Joined
Mar 8, 2002
Messages
2
Location
GB
I have a table in my database with a many-many relationship. One field being Pupil ID, one being Subject ID, and then 12 other fields each reffering to a different type of grade i.e. Attainment, Attitude, Punctuality etc. i.e. in this table there are many records for each pupil referring to his grades in each subject.
To mail merge the table I need to have all the grades/subjects for one pupil in one record (or do i?) this is so that I can have all the grades for one pupil on one page. A report is unsuitable for me because I need to use the wordprocessing capabilities of word. Is there a way i can group all the records for one pupil into one or do I have to do something else?
Please help,
Sam
 
I did a similar thing when building a form letter.

My customer table had the following fields:
FName, LName, Address, City, State, Zip

In query design view for the query on which my letter was based, I entered the following into the Field box:

Address: [tblCust]![FName] & " " & [tblCust]![LName] & "
" [tblCust]![Address]& "
" [tblCust]![City] & ", " & [tblCust]![State]] & " " & [tblCust]![Zip]

The address field created by that query looked like this

FName LName
Address
City, State Zip

TIP if you right click on the feild box in the query you can build this in the expression builder... much easier than typing it all out.

Let me know if that helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top