K
Kenny G
Hello,
Using Access 2002
I am trying to print the current record from a form. I do get the report
using the below listed code. However, I don't just get the current
information on the subform, I get all the information on the subform and I
just want the data from the displayed record. Any help will be appreciated.
Private Sub cmdPrintCurrentRecord_Click()
Dim strWhere As String
strWhere = "[AutoID] = " & Me.[AutoId]
DoCmd.OpenReport "Client History Individual Report", acViewPreview, ,
strWhere
End Sub
Using Access 2002
I am trying to print the current record from a form. I do get the report
using the below listed code. However, I don't just get the current
information on the subform, I get all the information on the subform and I
just want the data from the displayed record. Any help will be appreciated.
Private Sub cmdPrintCurrentRecord_Click()
Dim strWhere As String
strWhere = "[AutoID] = " & Me.[AutoId]
DoCmd.OpenReport "Client History Individual Report", acViewPreview, ,
strWhere
End Sub