Here's my Q. I have a form in which users fill in text boxes and select checkboxes. After the form is completed, the user clicks the submit button which then transfers all to a word for editing, saving or emailing. My problem is trying get the checkboxes input to transfer to word and have the corresponding checkbox in word checked as well.
Can anyone suggest a solution?
Here is how I have been able to successfully transfer the text from the access form text field to a bookmark in the word doc.
Can anyone suggest a solution?
Here is how I have been able to successfully transfer the text from the access form text field to a bookmark in the word doc.
Code:
Private Sub Option133_click()
Dim objWord As Word.Application '
Start Microsoft Word.
Set objWord = CreateObject("Word.Application")
With objWord
'Make the application visible.
.Visible = True
'Open the document.
.Documents.Add ("\AWARD.frm.dot")
'Move to each bookmark and insert text from the form.
.ActiveDocument.Bookmarks("Address1").Select
.Selection.Text = (CStr(Forms![frmPDocuments]![Address1]))
.ActiveDocument.Bookmarks("City").Select
.Selection.Text = (CStr(Forms![frmPDocuments]![City]))
.ActiveDocument.Bookmarks("State").Select
.Selection.Text = (CStr(Forms![frmDocuments]![State]))
.ActiveDocument.Bookmarks("Zip").Select
.Selection.Text = (CStr(Forms![frmPDocuments]![Zip Code]))
End With
End Sub
Comment