Results 1 to 6 of 6
  1. #1
    9januerry9 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Location
    Glencoe, Illinois
    Posts
    2

    How do I get that drop down arrow to select proper values?

    I have a field in a Contacts table called Referred By. I also have a separate table called Referred By which contains a numeric ID and a value for each Referrer. When I enter data into the Contacts table, I want the Referred By field to have a down arrow so that I can select the appropriate value. The Referred By table has 2 fields -- ID (AutoNumber) and Referred By (Long Text). There are currently 5 values in the Referred By Table.

    I am new to Access. Can someone help? Thanks in advance.



    Jerry S.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Don't do data entry/edit directly with tables/queries. Use forms and a combobox on form.
    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.

  3. #3
    IncidentalProgrammer is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2014
    Location
    Texas
    Posts
    156
    Absolutely what June7 said.

    Within the form, to get the options from one table, and house the answers in another, you'll need to set the sources. Select your combobox in design view, and in Properties, go to the Data tab. "Control Source" determines where your entries from that combobox will be stored. "Row Source" determines where the options come from. If you have a lot of options (for example, states), use a table. If there will only ever be a small number of options (such as Yes, No, Pending), then you can type them into the Row Source box (previous example would format as Yes;No;Pending).

    Just be sure that the "Row Source Type" field is set appropriately to read whichever method you use for your combobox choices. If you type into Row Source the options you want to have available, you'll need to change the type from "Table/Query" to "Value List".

  4. #4
    9januerry9 is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Nov 2014
    Location
    Glencoe, Illinois
    Posts
    2
    Thanks for the help. I am trying to create a ComboBox. The table that I am drawing values from has two fields -- ID and Referred By. The ID is an Auto Number. That's not the field that I want to have appear in the ComboBox. But, it is the only field that appears as I make my way through the ComboBox Wizard. Any advice?

  5. #5
    IncidentalProgrammer is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2014
    Location
    Texas
    Posts
    156
    Is the ID the key field in the table? If so, the combo box should give you the option of hiding the key. If not, under the Data tab in the Property Sheet for the combobox, change the Bound Column to 2.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    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. Replies: 12
    Last Post: 11-18-2012, 03:53 PM
  2. IIF statement to select proper column data
    By lrydbom15 in forum Queries
    Replies: 3
    Last Post: 01-31-2012, 09:04 AM
  3. Select Drop down menu in Report
    By desiree in forum Reports
    Replies: 5
    Last Post: 09-06-2011, 09:51 AM
  4. Filtering query via drop down select box
    By djleggins in forum Forms
    Replies: 1
    Last Post: 09-03-2011, 09:23 AM
  5. Replies: 8
    Last Post: 09-24-2009, 02: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