PC Review


Reply
Thread Tools Rate Thread

Code to populate combo box

 
 
Alejandro
Guest
Posts: n/a
 
      12th Jan 2010
Hello there,

I have two combo boxes in a form and I would like the second box to be
populated based on a query run with code. So the user will select an option
in the first combo box and based on the selection a DoCmd.RunSQL command will
be run in the After Update event of that first box. I would like the result
of that query (whose output is a 1-column list of records) to be shown in the
second combo box.

Thanks in advance,

Alejandro.

 
Reply With Quote
 
 
 
 
ryguy7272
Guest
Posts: n/a
 
      12th Jan 2010
Watch this:
http://www.datapigtechnologies.com/f...combobox2.html


--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Alejandro" wrote:

> Hello there,
>
> I have two combo boxes in a form and I would like the second box to be
> populated based on a query run with code. So the user will select an option
> in the first combo box and based on the selection a DoCmd.RunSQL command will
> be run in the After Update event of that first box. I would like the result
> of that query (whose output is a 1-column list of records) to be shown in the
> second combo box.
>
> Thanks in advance,
>
> Alejandro.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Auto Populate a Combo Box based on the user selection of another Combo Box John W. Vinson Microsoft Access Forms 0 2nd Mar 2010 04:56 AM
Can you auto write AddItem VBA code to a form to populate a Combo BaBaBo Microsoft Access Form Coding 5 21st Oct 2009 11:22 PM
Populate distinct one combo box depending on selection in another combo box Tony Girgenti Microsoft Access 5 9th Jan 2006 01:45 PM
Populate distinct one combo box depending on selection in another combo box Tony Girgenti Microsoft Access Forms 5 9th Jan 2006 01:45 PM
Code to populate combo Mark Goldin Microsoft ASP .NET 2 3rd Aug 2004 01:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:18 AM.