PC Review


Reply
 
 
Leslie Isaacs
Guest
Posts: n/a
 
      15th Sep 2009
Hello All

How do you use the ApplyFilter action in a macro?

I have a query [qry_show_p45s] that takes as its record source
[qry_showAll]. [qry_showAll] is the record source for a form
[frm_employees]. I have a button on [frm_employees] with the OnClick event
set to run macro [mac_show_p45s], and this macro just has an ApplyFilter
action, with [qry_show_p45s] as the filter name argument. The problem is,
when I click the button on [frm_employees], all that happens is that the
existing filter (which was loaded as part of the form's OnOpen event) is
removed, and I am left with every record showing from [qry_showAll].

What have I done wrong?

Hope someone can help.
Many thanks
Leslie Isaacs


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ApplyFilter - more then one יריב החביב Microsoft Access 1 6th Jul 2009 12:19 PM
ApplyFilter Jose Perdigao Microsoft Access Form Coding 0 5th Jun 2006 12:10 PM
ApplyFilter II? Gary Microsoft Access Form Coding 2 9th Jan 2004 02:35 PM
ApplyFilter? Gary Microsoft Access Form Coding 0 8th Jan 2004 03:31 AM
Re: ApplyFilter Ngan Bui Microsoft Access Forms 0 23rd Jul 2003 05:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:51 PM.