Results 1 to 2 of 2
  1. #1
    MaggieE is offline Novice
    Windows Vista Access 2007
    Join Date
    Aug 2014
    Posts
    1

    Display report showing fields corresponding to a date entered by user

    Help please!

    I have 4 different tables with a dozen of fields and 4 corresponding forms filled up by the user. Each table has a Date field. I need to get a report where the user enters a date and the report displays the corresponding fields from each table (EmployeeName, Shift…).
    So, the user types a date and the report gives:

    TableA.EmployeeName TableA.Shift
    TableB.EmployeeName TableB.Shift
    TableC.EmployeeName TableC.Shift
    TableD.EmployeeName TableD.Shift

    I made a query with all those fields and for the 4 Date fields the criteria is: Like "*" & [Enter Date] & "*"
    It works if all 4 tables have the same dates in a same order. If not, it returns every combination
    Row1TableA, Row1TableB, Row1TableC…
    Row2TableA, Row1TableB, Row1TableC…

    Row1TableA, Row3TableB, Row1TableC…

    What I need is the report to display the fields from the 4 tables for a same date. A same date appears twice in each table because an employee fills up the form on day shift then a different employee on night shift. I basically want to know if the employee has filled up the form; if not, the report would display a blank field for that date:

    TableA.EmployeeName TableA.Shift
    TableB.EmployeeName TableB.Shift
    ‘blank (TableC’s form has not been filled up on that date)


    TableD.EmployeeName TableD.Shift

    Any suggestion would be really appreciated!

    Thank you

    Maggie

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Why do you have 4 tables? What is the data structure? Are these tables really different in structure?

    If you want a record for every date for every table, then need a dataset of every possible date.
    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. Replies: 15
    Last Post: 04-16-2014, 01:15 PM
  2. Replies: 3
    Last Post: 03-11-2013, 05:11 PM
  3. Replies: 1
    Last Post: 01-24-2013, 12:52 AM
  4. User entered data on report
    By funkygoorilla in forum Reports
    Replies: 1
    Last Post: 02-18-2012, 01:59 PM
  5. one date entered to hit 3 fields in one table how?
    By techexpressinc in forum Queries
    Replies: 0
    Last Post: 12-10-2008, 10:43 AM

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