Solved

Access Form Dropdown

Posted on 2014-01-13
5
419 Views
Last Modified: 2014-01-13
Hello,
There is a table called tblItem. I have a form that is used to fill in a table. For the field “icode” – what do I do so that there is a dropdown that selects only unqiue values from the [iCode] column of table [tblItem]


tHank you
howDoesThisLook2014-3.accdb
0
Comment
Question by:Rayne
  • 3
5 Comments
 
LVL 35

Assisted Solution

by:PatHartman
PatHartman earned 75 total points
ID: 39777522
Right click on the control and change it to a combo.

Now fix up a few properties.

Add the table name as the RowSource.
The bound column should default to 1.
Set Limit to List to Yes
Set Allow Value List Edit to No

Switch to the Format Tab

Change the column count to 2.
Set Column widths to:
0;2
This will hide the first column since the width is 0 and show the second column.  But the first column is what will be saved to the table since that is the bound column.

If you decide to show more than one column, you probably want to set the Column Heads to Yes and specify an exact width.  Remember, once the dropdown collapses, only the first column will be visible.
0
 

Author Comment

by:Rayne
ID: 39777653
Hello,

 I did it as you aid but I see nothing. Please let me know. I attached the file.
howDoesThisLook2014-2.accdb
0
 

Author Comment

by:Rayne
ID: 39777657
0
 
LVL 30

Accepted Solution

by:
hnasr earned 425 total points
ID: 39777660
As stated in a previous question: "link keys as combo boxes populated from the linked tables."

Try this for iCode. Do the same for other codes.
howDoesThisLook2014-4.accdb
0
 

Author Comment

by:Rayne
ID: 39777702
awesome hnasr, this is awesome
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Recently Microsoft released a brand new function called CONCAT. It's supposed to replace its predecessor CONCATENATE. But how does it work? And what's new? In this article, we take a closer look at all of this - we even included an exercise file for…
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

789 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