Results 1 to 8 of 8
  1. #1
    shingouki is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2018
    Posts
    5

    People who worked outside of their homeplace

    Hello, i am new to access and need help with a query.
    I have tables of: 1) people
    2.) companies
    3.) cities
    4.) places

    so how can i make a query that will show me people who: WORK OUTSIDE OF PLACE THEY LIVE IN.



    would really apprieciate any help, i tried google and youtube but no luck so far gonna keep trying.


    p.s. : english is not my native language.

  2. #2
    Kudos is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2017
    Location
    Toronto, ON
    Posts
    29
    Assuming your People table stores the Place they live and the Company they work at, and your Company table stores the Place the company is, you would create a query that brings in Person, Person Place and Company Place and then have a field set up to return True if the two Place fields match and False if they don't. Then your filter criteria for that column will be False.

    If you are able to upload your database here (and it contains no sensitive info), go ahead. Just curious, what is a Place, since it is apparently not a City?

  3. #3
    shingouki is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2018
    Posts
    5
    its in different language, so i think you would get lost,
    but how would i exactly filter the criteria
    what would i type in the criteria box, im really new to access.

  4. #4
    shingouki is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2018
    Posts
    5
    Quote Originally Posted by shingouki View Post
    its in different language, so i think you would get lost,
    but how would i exactly filter the criteria
    what would i type in the criteria box, im really new to access.
    place is something other then a city,
    its like this
    city,
    state,
    and something above state,

    its 3 levels of places
    but lets just say i need workers who work outside of the city they live in, how exactly would i do that?
    thanks

  5. #5
    Kudos is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2017
    Location
    Toronto, ON
    Posts
    29
    Place_Example.accdb

    Maybe this little example will help.

  6. #6
    shingouki is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2018
    Posts
    5
    ok thanks a lot for this,
    so i target the table with [place]. and record in the table with [PlaceName] , if it equals = placename in company place it will be listed in the table as true or false if it doesent equal it, and on criteria i put only false so i see which people dont live in the place they work, and i can hide the last row on query design view.
    this is really what i wanted to know thanks a lot for this,
    the only problem is my databse is a bit different, since we have 3 levels of places like i said,
    but it should be the same, youve really helped a lot this is huge step forward.

  7. #7
    Kudos is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2017
    Location
    Toronto, ON
    Posts
    29
    Excellent, good luck working the simple principle into your more complicated setup! Post again if you hit a snag I might be able to help with.

  8. #8
    shingouki is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2018
    Posts
    5
    yeah the thing is i guess, i skipped the basics went straight for the queries for an assignment,
    with this example i can see how it can be done and how to select tables and records in tables in query design,
    i feel really silly now for not knowing even the basic stuff.
    its only couple days since i do access.
    and thanks a lot my friend

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

Similar Threads

  1. Adding people to case table from people table.
    By fuonge in forum Database Design
    Replies: 2
    Last Post: 09-22-2015, 11:53 AM
  2. Replies: 1
    Last Post: 08-06-2014, 02:22 PM
  3. Calculating Last Day Worked
    By djclntn in forum Queries
    Replies: 7
    Last Post: 12-01-2013, 04:37 PM
  4. Sum hours worked, grouped by dep't
    By goodfood in forum Queries
    Replies: 3
    Last Post: 05-05-2011, 06:11 AM
  5. Replies: 0
    Last Post: 12-28-2009, 12:14 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