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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tricky one potentially?

Status
Not open for further replies.

Zunn

Technical User
Jun 21, 2002
9
GB
I have a form which is linked to a main client eg. (father) and a subform which displays the children's details. The number of children in each family can vary.

Could I populate a Word document with the full family details (client and all the children)?

Y.
ps. also I would like to know how I could output a carriage return?
 
This is assuming you have a button that you click on the main form to send info to the word document.



Dim strDocInfo as String
strDocInfo = Me.MyFieldName & vbNewLine _
& Me![MySubformName].Form![SubformFieldName]

This will get the data into a variable so that you can put it in the word document. It's just a rough picture but it gives you the referencing of parent fields, child fields and the new line.

Hope it helps.

ProDev, MS Access Applications
Visit me at ==> Contact me at ==>lonniejohnson@prodev.us

May God bless you beyond your imagination!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top