1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

How do I filter a form on open based on current user's associated department?

Discussion in 'Business Applications' started by miss98407, Apr 26, 2011.

Thread Status:
Not open for further replies.
Advertisement
  1. miss98407

    miss98407 Thread Starter

    Joined:
    Apr 26, 2011
    Messages:
    2
    I have a database with a form of [projects]. I have two tables, one for [projects] and one employee table that lists the [user], windows [login name] and their [department].

    I am able to get the form to open and filter on the users windows [login name], but how do I tell the form to match the user [login] with my employee table and filter all projects based on the users [department]?

    I'm going crazy trying to get this to work. Thanks!
     
  2. Keebellah

    Keebellah Trusted Advisor

    Joined:
    Mar 27, 2008
    Messages:
    6,572
    First Name:
    Hans
    I think you need to base your form on a query where both tables are joined.
     
  3. OBP

    OBP

    Joined:
    Mar 8, 2005
    Messages:
    19,895
    miss98407, welcome to the Forum.
    How are you "Filtering" the form based on the UserLogin?
    Can't you use the the same "filter" for the department.
     
  4. miss98407

    miss98407 Thread Starter

    Joined:
    Apr 26, 2011
    Messages:
    2
    I have a field that is defaulted to a module that gets the windows username. I have a filter that is applied to that field upon open. I can't get it to work for the department.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/993623

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice