Solved

populate a combobox from table with criteria

Posted on 2013-01-29
2
370 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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 …

695 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