Hi Jollywg. It doesn't work because you aren't specifying the field you want to filter. The filter clause should be structured as if it is a WHERE clause in SQL, but without the word WHERE.
I don't know the name of the field you are filtering, or whether it is a number or a text field, so replace the name of the dummy field below with the actual field from your query or table on which your form is based, and use the first line if your invoice number is a number, the second if it is text:
- Me.Filter = "[your invoice number field] = " & me.txtInvoiceNumber
-
Me.Filter = "[your invoice number field] = '" & me.txtInvoiceNumber & "'"
-Stewart