Results 1 to 1 of 1
  1. #1
    Ryan is offline Novice
    Windows Vista Access 2003
    Join Date
    Aug 2009
    Location
    Lafayette LA 70592
    Posts
    26

    Question Macro to Run RemoveFilter/Sort

    I have a Query that works fine, and displays on the sub form.



    If I click the ((LEFT CLICK)) command button though, it displays the query in a box and on the form.

    If I ((RIGHT CLICK)) click the command button, then a options comes up. One which is RemoveFilter /Sort.

    By using that, I dont get the query result in a extra datasheet, I get it just in the subform. Which is perfect and exactly what I want.

    I want a Macro so I dont have to right click, then click the Removefilter/Sort button.

    Unless there is another way??

    Thanks Ryan.
    *********************************************
    I discovered the answer with a few hours of luck!

    Make a Macro with the ShowAllRecord Command and save it
    On the Main form, made a new command button, attached the macro to it.

    While on click, it displayed the query info in the SubForm.

    (The query had the filter built in, by using data from the MainForm."Two drop down boxes") Also that extra query box doesnt display, it now works perfect! Thank everyone for the great help!
    Last edited by Ryan; 08-30-2009 at 03:52 AM. Reason: Solved : to input the Solved thingy

Please reply to this thread with any new information or opinions.

Similar Threads

  1. export to multiple sheets based on change in sort
    By mws5872 in forum Programming
    Replies: 0
    Last Post: 06-30-2009, 07:55 AM
  2. Can I pass "sort by" using DoCmd.OpenReport
    By alsoto in forum Reports
    Replies: 3
    Last Post: 04-16-2009, 08:11 PM
  3. Sort
    By mmp97 in forum Access
    Replies: 1
    Last Post: 12-18-2008, 10:14 PM
  4. Replies: 0
    Last Post: 03-26-2007, 02:12 AM
  5. Newbie(sort of) Subform help
    By rowman in forum Forms
    Replies: 0
    Last Post: 04-03-2006, 06:13 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums