Results 1 to 2 of 2
  1. #1
    DBAPP is offline Novice
    Windows XP Access 2007
    Join Date
    Oct 2012
    Posts
    2

    select data of some columns of the same row

    Hi,
    I'm developing a small Access 2007 database
    I am looking for a dropdown list for one of the columns that would automatically reflect the contents of the previous 4 columns of the same row.

    sample table mentioned below. Column 6 (Winner) should be a dropdown reflecting the nominations1,2,3
    Zone Nomination 1 Nomination 2 Nomination 3 Nomination 4 Winner
    South CV Raman Narayanmurthy Mohanlal I M Vijayan
    East Azim Premji Bhaichung Bhutia Jagdish Chandra Bose Bhupen Hazarika
    North Gulzaar Sam Pitroda Kapil Dev KP Singh
    West Sachin Tendulkar Asha Bhosale Anil Ambani Anil Kakodkar


  2. #2
    John_G is offline VIP
    Windows XP Access 2003
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    Hi -

    A Combo box (dropdown) cannot easily do that. Normally a dropdown (combo) selects and displays data from different rows of a table or query. However, since a combo box can also use values from a Value List (Row Source Type = Value List), you could use VBA to generate the value list for the dropdown, in the form's On current event.

    But you would be better off to rethink your data structure - it is not properly normalized. You should really have a separate table for the nominations:

    tblNominations

    Zone
    Nomination_Number
    Nomination_Name

    The combo would then select values from that table, though you might still have to use VBA to change its source for each record, using the Zone as criteria.

    HTH

    John

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

Similar Threads

  1. Missing columns by getting External data
    By Roncancio in forum Access
    Replies: 10
    Last Post: 04-26-2012, 11:46 AM
  2. Getting data in 2 columns in subreport
    By opopanax666 in forum Reports
    Replies: 2
    Last Post: 01-27-2012, 01:56 AM
  3. Replies: 1
    Last Post: 11-03-2011, 01:07 AM
  4. Using a query to move data to new columns
    By emunson in forum Queries
    Replies: 2
    Last Post: 12-01-2010, 10:16 PM
  5. Replies: 0
    Last Post: 04-03-2009, 01:15 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