S
Sammie
I have a form which relates to its subform on the ReceiptID field. I want
to create a command button on the subform which will filter the subform
records to match the ReceiptID of the main form (WTN RECEIPTS EDIT). What's
wrong with my code?
Me.Filter = "ReceiptID ='" & [Forms]![WTN RECEIPTS EDIT]![ReceiptID] & "'"
Me.FilterOn = true
I get a runtime error '2001' "You cancelled the previous
operation."
This filter produces the correct result when I filter by form. I save the
filter as a query, but the query is not available the next time I go back to
load a query into the filter. What am I doing wrong?
Thanks.
Sammy
to create a command button on the subform which will filter the subform
records to match the ReceiptID of the main form (WTN RECEIPTS EDIT). What's
wrong with my code?
Me.Filter = "ReceiptID ='" & [Forms]![WTN RECEIPTS EDIT]![ReceiptID] & "'"
Me.FilterOn = true
I get a runtime error '2001' "You cancelled the previous
operation."
This filter produces the correct result when I filter by form. I save the
filter as a query, but the query is not available the next time I go back to
load a query into the filter. What am I doing wrong?
Thanks.
Sammy