Results 1 to 2 of 2
  1. #1
    skinny1434 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2012
    Posts
    3

    Macro to Auto Filter

    I am stuck and in dire need of help on this one. I have a form that has numerous fields, there is one field that is called the "Relationship Code" it gives any customers who have a certain realtionship a 3 digit number. I would like a command button that you can press that will take the current record shown and filter their relationship code, to only show those records who have the same code. I know this can be done by going to the field>right clicking>and saying Equals " ". But I want a button with code that will do this automatically. Thanks!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    You want to filter the form's RecordSource?
    Here is one method http://datapigtechnologies.com/flash...tomfilter.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Adding Filter Using Macro
    By TxTcher in forum Forms
    Replies: 1
    Last Post: 02-05-2013, 02:16 AM
  2. Replies: 2
    Last Post: 05-05-2012, 02:34 AM
  3. Replies: 3
    Last Post: 04-07-2012, 09:01 AM
  4. Macro - Filter by scheme
    By erikl1 in forum Access
    Replies: 3
    Last Post: 02-27-2012, 01:26 PM
  5. Macro Filter not working....
    By avarusbrightfyre in forum Access
    Replies: 2
    Last Post: 06-18-2011, 04:09 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