D
Doctorjones_md
I have the following code (which opens a NEW Word document and prints the
data from my ACCESS form) -- I need code that will open a specified WORD
template and insert the ACCESS data into a specific bookmark. I'm sure this
is a simple process, but I'm somewhat frazzled (at this point) and have
settled on this option over several previous suggestions. Here's the code I
need to modify:
==================================
'The following code outputs the Print Detail data to a NEW Word document
'On Error GoTo Err_Command83_Click
'Dim stDocName As String
'Dim MyForm As Form
'stDocName = "PrintDetails"
'Set MyForm = Screen.ActiveForm
'DoCmd.SelectObject acForm, stDocName, True
'DoCmd.PrintOut
'DoCmd.SelectObject acForm, MyForm.Name, False
'Exit_Command83_Click:
'Exit Sub
'Err_Command83_Click:
'MsgBox Err.Description
'Resume Exit_Command83_Click
data from my ACCESS form) -- I need code that will open a specified WORD
template and insert the ACCESS data into a specific bookmark. I'm sure this
is a simple process, but I'm somewhat frazzled (at this point) and have
settled on this option over several previous suggestions. Here's the code I
need to modify:
==================================
'The following code outputs the Print Detail data to a NEW Word document
'On Error GoTo Err_Command83_Click
'Dim stDocName As String
'Dim MyForm As Form
'stDocName = "PrintDetails"
'Set MyForm = Screen.ActiveForm
'DoCmd.SelectObject acForm, stDocName, True
'DoCmd.PrintOut
'DoCmd.SelectObject acForm, MyForm.Name, False
'Exit_Command83_Click:
'Exit Sub
'Err_Command83_Click:
'MsgBox Err.Description
'Resume Exit_Command83_Click