Results 1 to 5 of 5
  1. #1
    rtcary is offline Advanced Beginner
    Windows XP Access 2002 (version 10.0)
    Join Date
    May 2010
    Posts
    35

    One Lookup table with Two needed values; how to use both


    The Lookup table has two fields containing values that are needed: Description and Amount ($). In the table that uses the Lookup, I'd like to have both values shown, but have a dropdown just once. In other words, when the user selects a description (the dropdown shows both the description and amount), can the amount be inserted into an Amount field as the description is done currently.

    Thank you,

    Todd

  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,521
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    rtcary is offline Advanced Beginner
    Windows XP Access 2002 (version 10.0)
    Join Date
    May 2010
    Posts
    35
    That should work, however I am not sure of the syntax in Access. There is the following example:

    =ComboName.Column(2)

    My field, "AdID" contains the ID of the AdTbl. That comes from the user's selection of the dropdown (Field0) while Field1 contains the Description and that is displayed in the AdID field. Field2 contains the Amount and I would like that displayed as an AutoFill (coming from the user's selection from the dropdown). In other words, Description is in one field and the Amount would be in the other. Since the row ID in the AdTbl is not known until a select is made, I am stumped on how to set up the query or use the ComboName.

    Todd

  4. #4
    rtcary is offline Advanced Beginner
    Windows XP Access 2002 (version 10.0)
    Join Date
    May 2010
    Posts
    35
    Quote Originally Posted by rtcary View Post
    That should work, however I am not sure of the syntax in Access. There is the following example:

    =ComboName.Column(2)

    My field, "AdID" contains the ID of the AdTbl. That comes from the user's selection of the dropdown (Field0) while Field1 contains the Description and that is displayed in the AdID field. Field2 contains the Amount and I would like that displayed as an AutoFill (coming from the user's selection from the dropdown). In other words, Description is in one field and the Amount would be in the other. Since the row ID in the AdTbl is not known until a select is made, I am stumped on how to set up the query or use the ComboName.

    Todd
    I figured it out...nifty!

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Glad you sorted it out.
    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. How to use lookup table values in a form as a Label
    By MP BILL in forum Database Design
    Replies: 12
    Last Post: 08-09-2012, 06:13 PM
  2. Replies: 5
    Last Post: 06-14-2012, 08:30 AM
  3. Replies: 5
    Last Post: 12-21-2011, 07:16 PM
  4. Replies: 1
    Last Post: 08-05-2011, 05:16 PM
  5. table lookup / null field values, help!
    By benjammin in forum Forms
    Replies: 3
    Last Post: 07-27-2011, 01:56 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