Results 1 to 5 of 5
  1. #1
    shishkish is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2016
    Posts
    2

    Querying Access 2013 Tables for Specific Field Information


    Hi, I'm new to Access 2013 and I would like to ask a question about querying field information across 52 tables. I have an overall staff list I have organized into positions with seniority. I also queried each position by seniority in their own list. I have created 52 tables representing 52 weeks of 2017. I am trying to create a simple vacation scheduling system. Am I able to query a search for an employee's ID number across 52 tables? If so, would I also be able to organize this data on a new table so I could print out a report for all the 2017 vacations for that one ID number? Lastly, I have the day of the week and the date listed in the top field header on each week table. Would these headers be able to be listed also in the final report to indicate what day and date a person is on vacation? Thank you for your time.

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,932
    having a table for each week is bad db design. You should have one table with an additional 'weekno' column. Then your search becomes very easy

  3. #3
    Join Date
    Jun 2015
    Location
    Wales. Land of the sheep.
    Posts
    1,228
    Perhaps make a more detailed post explaining what you want to achieve to get ideas how to get there. Rather than perusing a bad design that is.

    I'm sure you will get some good feedback/ideas if you ask.

  4. #4
    shishkish is offline Novice
    Windows 10 Access 2013 64bit
    Join Date
    Dec 2016
    Posts
    2
    Quote Originally Posted by Homegrownandy View Post
    Perhaps make a more detailed post explaining what you want to achieve to get ideas how to get there. Rather than perusing a bad design that is.

    I'm sure you will get some good feedback/ideas if you ask.
    I need to be able to print out a weekly report for every week of 2017 from Sunday to Saturday with the date to indicate the employees that are on vacation during that time frame. I tried the one table idea but I could not figure out how to make multiple header fields to indicate the day and date above the employees that are on vacation for a specific day. Thanks again for your help.

  5. #5
    aytee111 is offline Competent At Times
    Windows 7 32bit Access 2013 32bit
    Join Date
    Nov 2011
    Location
    Nomad
    Posts
    3,936
    Get the table design right first - this is not Excel!

    Table 1 - employees
    Table 2 - employee id, vacation from date, to date

    VBA function:
    - start date
    - read table 2 record by record
    - for every day, output a record to a temporary table:
    - employee id
    - date
    - on vacation yes

    You will end up with a table which contains all dates where someone(s) is on vacation. When you print the calendar you will access this table and be able to bring in an employee's name for that day.

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

Similar Threads

  1. Pulling Specific Information in Access Reports
    By Herman Dickey in forum Access
    Replies: 8
    Last Post: 06-28-2016, 11:52 AM
  2. Replies: 3
    Last Post: 12-05-2015, 01:34 PM
  3. Replies: 1
    Last Post: 10-08-2015, 04:27 AM
  4. Querying a specific text in a sentence
    By scorpion99 in forum Queries
    Replies: 1
    Last Post: 10-13-2014, 12:39 AM
  5. Replies: 1
    Last Post: 04-06-2009, 07:25 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