M
miss031
I can't quite get this right:
I have a form: "Cashiering"
It has a combo called "findbybidnumber" that finds a particular record and
displays it on the form, based on the field "bidnumber"
I made a button called "print_invoice" to open a report "Item Invoice" which
I would like filtered by "bidnumber" on my form, which is the same number
also displayed in "findbybidnumber"
Problem is, the field on my report is also called "bidnumber" and I can't
get the syntax right.
Private Sub print_invoice_Click()
Dim strWhere As String
strWhere = "[bidnumber] = " & [bidnumber]
DoCmd.OpenReport "Item Invoice", acViewPreview, , strWhere
End Sub
I have a form: "Cashiering"
It has a combo called "findbybidnumber" that finds a particular record and
displays it on the form, based on the field "bidnumber"
I made a button called "print_invoice" to open a report "Item Invoice" which
I would like filtered by "bidnumber" on my form, which is the same number
also displayed in "findbybidnumber"
Problem is, the field on my report is also called "bidnumber" and I can't
get the syntax right.
Private Sub print_invoice_Click()
Dim strWhere As String
strWhere = "[bidnumber] = " & [bidnumber]
DoCmd.OpenReport "Item Invoice", acViewPreview, , strWhere
End Sub