Results 1 to 6 of 6
  1. #1
    hithere is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Sep 2011
    Posts
    63

    Add text from different table

    I have a form with the control souce Info table. This table includes Cmpyname, number, address, start date, and phone number.

    I would like to add a text box that retrieves a date from my CMS table. The CMS table has a name field(looked up from the Info table) update field, and date field.

    Combining the tables into a query will not work because there are several other fields on the form that only apply to one table.

    Is there any way to add a text box to a form from another table or query?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Is this what you're looking for?

    http://www.baldyweb.com/Autofill.htm
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,917
    You can use a DLookup(). Do these two tables share a relationship of some sort? Do they have a field in common?

  4. #4
    hithere is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Sep 2011
    Posts
    63
    The two are joined by name. Cmpyname from the info table and Name from the CMS table. The Name field is looked up fromt the Cmpyname field.

  5. #5
    hithere is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Sep 2011
    Posts
    63
    pbaldy this is somewhat what I am looking for. I would like for the values to appear in the text box based on whatever record is displaying. I.e if I the record at the bottom displays record one the assoiated information should come up without having to select it from a combo box.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Presuming the combo row source contains the fields, the

    =ComboName.Column(x)

    method should work.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Referring to another table for a text box
    By hawkins in forum Reports
    Replies: 5
    Last Post: 07-05-2011, 04:14 PM
  2. Table Join on Text
    By stosh59 in forum Queries
    Replies: 4
    Last Post: 04-29-2011, 11:05 AM
  3. How do I write to a table from text box
    By noweyout in forum Forms
    Replies: 5
    Last Post: 03-17-2011, 07:14 PM
  4. Replies: 0
    Last Post: 03-01-2010, 07:42 PM
  5. text box in table
    By texasguy4 in forum Access
    Replies: 0
    Last Post: 08-15-2008, 10:48 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