E
Eswift
I am trying to Build an Event using Visual Basic so when
you click on a command button it prints out the report I
created for that single record only. I am using the last
name field as the primary key, but it does not seem to be
working? What am I missing??? Thank you in advance for
any help you can provide.
Dim stDoc As String
Dim stWhere As String
stDoc = "CMCRReport"
stWhere = "Last Name = " & Me.Last Name
DoCmd.OpenReport stDoc, , , stWhere
Private Sub Print_Report_Click()
End Sub
you click on a command button it prints out the report I
created for that single record only. I am using the last
name field as the primary key, but it does not seem to be
working? What am I missing??? Thank you in advance for
any help you can provide.
Dim stDoc As String
Dim stWhere As String
stDoc = "CMCRReport"
stWhere = "Last Name = " & Me.Last Name
DoCmd.OpenReport stDoc, , , stWhere
Private Sub Print_Report_Click()
End Sub