G
Guest
I have read everything that I could find about this (Even went to Allen
Browne's website) and it is still not working. Here is my code:
Private Sub Command63_Click()
On Error GoTo Err_Command63_Click
Dim stWhere As String
stWhere = "[Subgroup]= """ & Me.[Subgroup] & """"
DoCmd.OpenReport "Tripwire 2", acPreview, , strWhere
Exit_Command63_Click:
Exit Sub
Err_Command63_Click:
MsgBox Err.Description
Resume Exit_Command63_Click
End Sub
Payor Subgroup is one of three primary keys on the form. I have a table for
Regional Manager, Supervisor, Payor List, Payor Analysis. The tables have a
one to many relationship starting at the Regional manager level and cascading
down as listed. In my source query, I pull from all tables. The Subgroup
field used comes from the Payor List table, where it is the primary key.
I can get the report to Print all records, but not just the record in the
form. Could the other primary keys be getting in the way or am I doing
something else wrong?
Browne's website) and it is still not working. Here is my code:
Private Sub Command63_Click()
On Error GoTo Err_Command63_Click
Dim stWhere As String
stWhere = "[Subgroup]= """ & Me.[Subgroup] & """"
DoCmd.OpenReport "Tripwire 2", acPreview, , strWhere
Exit_Command63_Click:
Exit Sub
Err_Command63_Click:
MsgBox Err.Description
Resume Exit_Command63_Click
End Sub
Payor Subgroup is one of three primary keys on the form. I have a table for
Regional Manager, Supervisor, Payor List, Payor Analysis. The tables have a
one to many relationship starting at the Regional manager level and cascading
down as listed. In my source query, I pull from all tables. The Subgroup
field used comes from the Payor List table, where it is the primary key.
I can get the report to Print all records, but not just the record in the
form. Could the other primary keys be getting in the way or am I doing
something else wrong?