J
Joshua K Briley
Hello,
I have a macro set up to merge information from a query to a word document.
Currently this macro sends information on ALL records contained in the query,
but I'd like to have it set up where it only selects the current record on a
particular form.
The cuurent code is:
Private Sub Command22_Click()
On Error GoTo Err_Command22_Click
Dim stDocName As String
stDocName = "new envelope macro"
DoCmd.RunMacro stDocName
Exit_Command22_Click:
Exit Sub
Err_Command22_Click:
MsgBox Err.Description
Resume Exit_Command22_Click
End Sub
I have a macro set up to merge information from a query to a word document.
Currently this macro sends information on ALL records contained in the query,
but I'd like to have it set up where it only selects the current record on a
particular form.
The cuurent code is:
Private Sub Command22_Click()
On Error GoTo Err_Command22_Click
Dim stDocName As String
stDocName = "new envelope macro"
DoCmd.RunMacro stDocName
Exit_Command22_Click:
Exit Sub
Err_Command22_Click:
MsgBox Err.Description
Resume Exit_Command22_Click
End Sub