Results 1 to 3 of 3
  1. #1
    junestag is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2014
    Posts
    4

    Question Showing related data in a form

    I'm wondering if its possible to enter data in a form that populates 1 table but also SHOWS data from a related table (from a table already related to the underlying table of the form via another field) on another part of the form - say a 'sidebar'?



    Thus for example I have two ID fields in my related table and I want to be able to select/enter data for one of those ID fields in my form and have the other, related ID field show up somewhere on the form AS I'm entering the rest of the data for the record.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Options in order of preference:

    1. a multi-column combobox, properties:
    RowSource: SELECT [id field], [other id field] FROM tablename;
    BoundColumn: 1
    ColumnCount: 2
    ColumnWidths: 0";1.0" (if you want to hide the first id so users make choice with the other id)

    2. form RecordSource is a query or sql statement that joins the tables with join type: "Include all records from {tablename} and only those from related {tablename} that match"
    Bind textbox to the type field from table2 and set it Locked Yes, TabStop No

    3. DLookup function expression in textbox ControlSource
    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.

  3. #3
    junestag is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Apr 2014
    Posts
    4
    Thank you a second time!

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

Similar Threads

  1. Showing Related Data in a Form
    By GregWatling in forum Forms
    Replies: 20
    Last Post: 06-11-2013, 07:42 AM
  2. Replies: 10
    Last Post: 07-18-2012, 03:42 PM
  3. Replies: 1
    Last Post: 07-16-2012, 02:10 PM
  4. Show related data on a form
    By Accessgrasshopper in forum Forms
    Replies: 4
    Last Post: 03-17-2011, 07:53 PM
  5. Replies: 4
    Last Post: 12-21-2010, 11:32 AM

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