Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to change field in forms to drop down lists

Posted on 2014-07-24
3
Medium Priority
?
170 Views
Last Modified: 2015-02-25
I am new to Access 2013- I am using a template called Contacts which had tables, forms reports already created, I just had to import that data from my Excel spreadsheet.  I added this field and formatted it as drop down and entered the choices for it in the table.  But the problem is when I try to get this information to show in the existing forms it will not.  It shows the field I added to the table but it is not showing the drop down options.  I have tried to figure out how to get this to work and so far have not been able to.  Can someone tell me how I can change/format the 2 existing forms so that this field will show the drop down selections that are setup for this field in the table?
0
Comment
Question by:jajen
3 Comments
 
LVL 31

Expert Comment

by:Helen Feddema
ID: 40217051
Generally, this is done by placing a combo box on the form, bound to the field, with a row source of the table containing the items for the drop-down list.  The field may be a text field, holding selections from the list, or (more usually) it would be a numeric field, holding an ID value.  In that case, the lookup table would have a numeric ID field and another field to display in the drop-down list, with the first column width set to 0 so it won't display in the list.
0
 
LVL 40

Accepted Solution

by:
PatHartman earned 2000 total points
ID: 40217675
If you open the form in design view and right-click on the textbox, you will see an option to change it to a combo.  Once it is changed to a combo, you need to set several properties to get it to work correctly.

Data Tab
1. Control Source - if you used the method I suggested, the control should still be bound to the correct column.  The Control Source defines what column in the Forms RecordSource will hold the selected value
2. Row Source - this is a table/query that contains the "list" of items that will appear in the dropdown.  Make sure it is sorted and conventionally, the "key" column is the first column and the "display" column is the second column.
3.  Bound Column - usually 1 but could be different if the "key" column is not the first column.
4. Limit To List - I set mine to Yes because I don't generally allow people to add to the list on the fly.
Format Tab
5. Column Count - total number of columns selected in item #2.  If you bind the RowSource directly to a table (not recommended), this is the number of columns in the table.
6. Column Widths - specifies the width of each column in item #5.  0 means hide the field.  Anything else will display it.  Typically we hide the "key" column if it is an autonumber ID and display the "display" column(s).
7. Column Heads - I set this to Yes if I am displaying more than one column in item #5 so the user knows what he is looking at.
8. List Width - make this wide enough to be at least the sum of all values in item #6.

There are lots of other properties but these 8 are the ones you will set to make the combo "work".
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 40225382
I added this field and formatted it as drop down and entered the choices for it in the table.  But the problem is when I try to get this information to show in the existing forms it will not.  It shows the field I added to the table but it is not showing the drop down options.

Make sure the RowSourceType Property of the combobox is set to: Value List
0

Featured Post

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question