Results 1 to 3 of 3
  1. #1
    cooper is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    24

    Show records for each date

    Hi,

    I have a subform with many text boxes - these text boxes are supposed to show the different fields in the original table.

    What I want to do is - let the user select a date from a combo box, and as the user selects a particular date, the text boxes are all populated. Also, the user should be able to edit these text boxes and save the changes without having to add new record (over writing data).

    A new record is only added if a new date is selected. I have a query (mainquery) with the following SQL that shows the values I want, but how do I use the result to populate these text boxes:

    SELECT Table2.Date, Table2.Employee_ID, Table2.[Caseflow Shelving Available], Table2.[Caseflow Shelving Actioned], Table2.[High Cube Available], Table2.[High Cube Actioned], Table2.[Prewab Report Available], Table2.[Prewab Report Actioned], Table2.[Run to Zero/Frozen Availabl], Table2.[Run to Zero/Frozen Actioned]


    FROM TblEmployees LEFT JOIN Table2 ON TblEmployees.Employee_ID = Table2.Employee_ID;


    I would really appreciate if someone can help me out here -

    I can post the sample database if someone would like to have a look.

    Thanks!!

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    You should not use names with embedded spaces or special characters. These will cause you more grief as you proceed.
    You should not use the name Date as one of your fields. Date is a reserved word with special meaning in access.

    Can you post a picture of your tables and relationships?

  3. #3
    cooper is offline Novice
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    24
    oh i see! I will change it!! thanks!

    i am posting the database here - It would be great if you can have a look and guide me somewhere.

    thanks again for taking out your time to help!!!

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

Similar Threads

  1. Calculated date does not show in table
    By frankq in forum Forms
    Replies: 6
    Last Post: 06-23-2011, 01:31 AM
  2. Replies: 5
    Last Post: 06-13-2011, 01:30 PM
  3. Aslways show Current Date even in Old records
    By farhanahmed in forum Programming
    Replies: 3
    Last Post: 04-03-2011, 12:56 PM
  4. Criteria to show date range
    By Douglasrac in forum Queries
    Replies: 2
    Last Post: 03-24-2011, 03:58 PM
  5. Show all records.
    By dennisvillareal in forum Access
    Replies: 1
    Last Post: 03-03-2011, 04:28 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