Results 1 to 4 of 4
  1. #1
    AZHorseTrader is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    2

    Filter form on network ID

    Hello All:



    I have a form I to filter on the user based on the user's network ID. I have a function in a module that determines the user's network ID (NetworkUserName). The employee table has a field (strNetworkID).

    I want this trigger this subroutine when the form is loaded. Any thoughts on how this can be accomplished?

    D

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Use the OnLoad event of the form to apply the Filter.

  3. #3
    AZHorseTrader is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    2
    Do you have an an example? I'm up against the clock and I'm not too familiar with applying filters using VBA.

    Thanks much...

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How are you opening the form?

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

Similar Threads

  1. Replies: 2
    Last Post: 11-25-2013, 10:56 AM
  2. filter when i open form
    By Balen in forum Forms
    Replies: 0
    Last Post: 08-12-2010, 02:31 PM
  3. Filter a Form Using Calculated Tx Box?
    By TxTcher in forum Forms
    Replies: 1
    Last Post: 08-12-2010, 06:49 AM
  4. Form Filter
    By smikkelsen in forum Forms
    Replies: 5
    Last Post: 07-13-2010, 08:21 PM
  5. Form Filter
    By catat in forum Forms
    Replies: 5
    Last Post: 05-05-2010, 02:29 PM

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