?
.
ms access 2007,
using a simple filter to show certain records, based on value in a combobox
what happens:
1) form loads, all records are visible-------good
2) a command button is used to set a filter based on a value in a
ombobox ----- works correctly the first time
3) next time the filter is run, new filter displays results from the first
filter instead of the second filter request....
DoCmd.ShowAllRecords
Me.Refresh
Me.Requery
Me.Repaint
DoCmd.ApplyFilter , "invoicenumber=[Forms]![Purchases
Entry]![TB_invoicenumber]"
i've been around the web, and havent found a solution for this problem, so
it seems like i'm just doing something stupid...
using a simple filter to show certain records, based on value in a combobox
what happens:
1) form loads, all records are visible-------good
2) a command button is used to set a filter based on a value in a
ombobox ----- works correctly the first time
3) next time the filter is run, new filter displays results from the first
filter instead of the second filter request....
DoCmd.ShowAllRecords
Me.Refresh
Me.Requery
Me.Repaint
DoCmd.ApplyFilter , "invoicenumber=[Forms]![Purchases
Entry]![TB_invoicenumber]"
i've been around the web, and havent found a solution for this problem, so
it seems like i'm just doing something stupid...