I need to print out the information in a subform on the current form page. The printout method does not allow the selection of a particular record. The print button wizard put in this code:
Dim stDocName As String
Dim MyForm As Form
stDocName = "mysubform"
Set MyForm = Screen.ActiveForm
DoCmd.SelectObject acForm, stDocName, True
DoCmd.PrintOut
DoCmd.SelectObject acForm, MyForm.Name, False
Unfortunately, this prints out every form in "Mysubform"! I only want the info from the current record.
Thanks, Bill Heath
Dim stDocName As String
Dim MyForm As Form
stDocName = "mysubform"
Set MyForm = Screen.ActiveForm
DoCmd.SelectObject acForm, stDocName, True
DoCmd.PrintOut
DoCmd.SelectObject acForm, MyForm.Name, False
Unfortunately, this prints out every form in "Mysubform"! I only want the info from the current record.
Thanks, Bill Heath