N
Neil
This was supposed to be an easy little tweak to a form and
has cost me a day tearing out my hair...
When I finally boiled the problem down to its roots,
here's the problem I'm left with...
DoCmd.ApplyFilter , "[CDB]![Status] = " & t
.... works once. If I change the value of t and run the
command again it ignores the new value of t and uses
whatever the previous value was.
.... and continues to do so until I do one of 3 things...
1. Close the form it's triggered from and reopen it.
2. Right Click "Remove filter" (Button bar remove filter
does NOT affect the problem).
3. Amend the module code and save it.
.... at which point it works once more with the next value
of t and sticks on that.
Can anyone give me any clues as to why this doesn't work
and what can be done to get around it?
has cost me a day tearing out my hair...
When I finally boiled the problem down to its roots,
here's the problem I'm left with...
DoCmd.ApplyFilter , "[CDB]![Status] = " & t
.... works once. If I change the value of t and run the
command again it ignores the new value of t and uses
whatever the previous value was.
.... and continues to do so until I do one of 3 things...
1. Close the form it's triggered from and reopen it.
2. Right Click "Remove filter" (Button bar remove filter
does NOT affect the problem).
3. Amend the module code and save it.
.... at which point it works once more with the next value
of t and sticks on that.
Can anyone give me any clues as to why this doesn't work
and what can be done to get around it?