Solved

Access Form Dropdown

Posted on 2014-01-13
5
416 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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

Microsoft Office Picture Manager is not included in Office 2013. This comes as a shock to users upgrading from earlier versions of Office, such as 2007 and 2010, where Picture Manager was included as a standard application. This article explains how…
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…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

770 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