Results 1 to 6 of 6
  1. #1
    hawkins is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    82

    Referring to another table for a text box


    I fee like this is a really simple question but am having troubles with it. I have two tables one called static and one called JurisdictionList. In the static table I have a column header named Jurisdiction which is populated with numbers that are referred to the JurisdictionList table by the column named ID in that table. The ID field has a designated location. I was wondering how I can use a text box to refer to that designated location. I can get a text box to populate with the number in Jurisdiction but I would like to use that number to relate to the location. Any suggestions are appreciated!

  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,641
    Is this what you're trying to do?

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

  3. #3
    hawkins is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    82
    Similar but not exactly what I need I dont think, the report is a page report for each feeder name, and the name is found by [Reports]![MainRep]![FdrName]. I would just like a text box I believe because I do not want to choose from a list I want the value that is stored in Jurisdiction field to be used to relate to the full location name in the location field and display that full location from the JurisdictionList table in the text box.Does that make sense?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Yeah, I missed that is was on a report. Typically your report would be based on a query that joined the two tables on the common field. That enables you to include the other field from JurisdictionList. Does that sound appropriate? Or am I still goofed up?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    hawkins is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Jun 2011
    Posts
    82
    oh ok that makes sense! I was going to try to get around a query because I already have 9 for the report but I'll just make another. Thank you for your help!

  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,641
    No problem, post back if you get stuck. That's definitely the normal method. An alternative would be DLookup(), but it would be much less efficient than letting the query do the 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. Replies: 2
    Last Post: 11-26-2010, 04:20 AM
  2. Replies: 0
    Last Post: 03-01-2010, 07:42 PM
  3. Referring to objects
    By stubbly in forum Programming
    Replies: 1
    Last Post: 10-14-2009, 09:36 AM
  4. Simple Question about Referring to tables
    By KIDRoach in forum Access
    Replies: 4
    Last Post: 06-19-2009, 07:34 AM
  5. Referring to fields in tab controls
    By AndrewAfresh in forum Forms
    Replies: 1
    Last Post: 06-03-2006, 05:10 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