Solved

populate a combobox from table with criteria

Posted on 2013-01-29
2
357 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 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
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 …
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.

808 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