Solved

populate a combobox from table with criteria

Posted on 2013-01-29
2
333 Views
Last Modified: 2013-01-29
Hi  I am using Access 2010

I have a table with two fields.  

Table Name :  MyTable

Table fields below..
[Transaction Type]     ...  Text field
[Type ID]               ...  Numeric field

On my form,  I have a combobox.  I would like the dropdown selection to show table entries of [Transaction Type]  where  [Type ID] > 2

I would like to do this in the Form Load event.  I appreciate your help.
0
Comment
Question by:peispud
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 38832616
private sub form_load()

me.comboName.rowsource="select  [Type ID],[Transaction Type]  from MyTable Where  [Type ID] >2"


end sub

set the combo
column count to 2
bound column 1
column widths 0; 1
0
 

Author Closing Comment

by:peispud
ID: 38832766
Thank you.  

I'm getting through this project with some awesome help.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Today's users almost expect this to happen in all search boxes. After all, if their favourite search engine juggles with tens of thousand keywords while they type, and suggests matching phrases on the fly, why shouldn't they expect the same from you…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

706 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now