P
PennyB
Can someone please tell me why this isn't working to open the Building Permit
(report) to one specific record? The report is based on a query that shows
all records for Job Number and Permit Number. There is about 685 records.
Here is the code I am using:
Private Sub cmdBuildingPermit_Click()
Dim strWhere As String
strWhere = "[JobNumber] = " & Me.JobNumber & ""
strWhere = "[PermitTaskNumber]=" & Me.PermitNumber & ""
DoCmd.OpenReport "rptBuildingPermit", acViewPreview, , strWhere
End Sub
What happens - I get a mess. I don't just get one record I get 495 and they
are in random order.
Thanks,
PennyB
(report) to one specific record? The report is based on a query that shows
all records for Job Number and Permit Number. There is about 685 records.
Here is the code I am using:
Private Sub cmdBuildingPermit_Click()
Dim strWhere As String
strWhere = "[JobNumber] = " & Me.JobNumber & ""
strWhere = "[PermitTaskNumber]=" & Me.PermitNumber & ""
DoCmd.OpenReport "rptBuildingPermit", acViewPreview, , strWhere
End Sub
What happens - I get a mess. I don't just get one record I get 495 and they
are in random order.
Thanks,
PennyB