6 replies
by michaelfuhrman Accepted solution
by Former member Accepted solution
1. Why not create a Hyperlink to the Word Document?
2. If you still want to Link the Word Document, and not have it bound:
1. Enter Form Design View
2. Insert ==> Object
3. Select Create from File
4. Select Link
5. Browse ==> Select File
6. OK ==> OK
7. Set the Enabled Property of the Unbound Object Frame to Yes
Read more here:
http://bytes.com/forum/thread718991.html
Please post back if you have any more problems or questions.
by michaelfuhrman Accepted solution
by Former member Accepted solution
Dynamically generate ms word document using vba access 2007.
There are many ways to approach this
' problem. I usually begin with a word
' template containing the structure of
' the table I want to populate. Then
' open the template from vba in excel
' and begin inserting table records.
Set wdApp = CreateObject("Word.Application")
wdApp.Visible = True
Set wdDoc = wdApp.Documents.Add("Bill.dot")
Set wdTbl = wdDoc.Tables(1) ' containing table
' I use a function to actually populate
' the rows passing it the table id name
' and row data.
Set wdInTbl = wdTbl.Tables(2) ' table in a table
SetTableRow wdInTbl, idx, prevDate & "|" & _
prevJob & "|" & _
Format(prevTime, decFmt) & "|" & _
prevRate & "|" & _
Format(prevAmount, dolFmt)
Sub SetTableRow(tbl As Word.Table, row As Integer, lbl As String)
Please post back if you have any more problems or questions.
by rob miners Accepted solution
by allouttr Accepted solution
Yes, you can program a Word template (macro in VBA) to do things like scanning aWord document for data items/fields in an Access DB. In the database you would first scan for a list of data items you want to confirm are in the Word doc then you use VBA scanning of the text in the document to see if those items are present and where they are located (page, line, column). You could also probably scan a Word table with VBA to see if they are there.
John James
All-Out Solutions, Inc.
This discussion is closed to new replies.
Trending Software posts
Sort by Trending