Link to home
Start Free TrialLog in
Avatar of perstam
perstam

asked on

Access 2000: ApplyFilter action canceled

Greetings,

Well, I'm having another filter problem ...

I'm trying a docmd.applyfilter to a form based on user input to that same form.  I've coded the applyfilter in the afterupdate event of a control on the form so that after then user enters the data the filter is executed.  Unfortuantely, I get run time error 2501:  applyfilter action canceled.  I guess I'm not understanding something here, but I thought I could do this kind of thing.

Anyone have any ideas?

Thanks in advance!
ASKER CERTIFIED SOLUTION
Avatar of tomk120999
tomk120999

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tomk120999
tomk120999

Sorry, the above assumes you have 2 controls named StartDate and EndDate on the form.
Avatar of perstam

ASKER

Tom,

This worked great!  Thanks for your help.

I'll get back with you on the other one tomorrow ...

Sam