Results 1 to 2 of 2
  1. #1
    ddivney is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    1

    Using a lookup column as row source

    I'm trying to set up a combo box that will search my records and I've gotten it to work, however I'm trying to fix the values it displays.



    The row source for the combo box is
    Code:
    SELECT [Match].[MatchID], [Match].[Home], [Match].[Away] FROM [Match];
    , with the fields Home and Away being lookup fields themselves, with rowsources
    Code:
    SELECT [Team].[TeamID], [Team].[TeamName] FROM Team;
    .

    So the search combo box displays MatchID, Home and Away fine, but it shows the TeamID column of Home and Away, and I would like it to show the TeamName column. Is there a way to use the column function (i.e. Column(#)) in the row source?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I don't think so. The RowSource sql is pulling values from table field. The column index is a property of combo and list boxes on form.

    Make the combobox RowSource a query that joins tables so that all related data is available.

    Want to provide db for analysis? Follow instructions at bottom of my post.
    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.

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

Similar Threads

  1. Column Control Source Property
    By rts in forum Reports
    Replies: 6
    Last Post: 05-17-2012, 06:42 PM
  2. Replies: 5
    Last Post: 04-03-2012, 12:08 PM
  3. Need help with Lookup Column
    By Buakaw in forum Access
    Replies: 5
    Last Post: 02-26-2012, 03:04 PM
  4. Lookup column
    By drvo in forum Access
    Replies: 9
    Last Post: 12-07-2011, 08:29 AM
  5. List in Report Won't Show a Column in the Source Table
    By italianfinancier in forum Access
    Replies: 1
    Last Post: 05-28-2011, 02:23 AM

Tags for this Thread

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