Computer Forum Forum Index
Register  FAQ Profile Log in to check your private messages Log in Register 

How to Populate One ListBox Based On Another ListBox

 
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word programming
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Tue Dec 11, 2007 9:54 am    Post subject: How to Populate One ListBox Based On Another ListBox Reply with quote

Hello everybody!

I have created a UserForm with 2 listboxes (comboboxes). The data for
those combo's is from an Access Database ( a table with 2 coloms).


I work with WORD/Access XP.


colomn 1: countries
colomn 2: cities


for example:
USA NewYork
France Paris
USA Washington


I need a macro that will enable me to choose a value in combobox 1
(for example: USA) and in combobox 2 I will get only the cities of
USA
(for example: New-York, Washington... end so on).


I will be very grateful for your HELP!!


Iris
Back to top
Google
Sponsor





PostPosted: Tue Dec 11, 2007 9:54 am    Post subject: Advertisement

Back to top
macropod
Guest





PostPosted: Tue Dec 11, 2007 7:49 pm    Post subject: Re: How to Populate One ListBox Based On Another ListBox Reply with quote

Hi Iris,

There's an example you can work from here:
http://www.wopr.com/cgi-bin/w3t/showthreaded.pl?Number=585,980

Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------

<irisbutnaru1@gmail.com> wrote in message news:1eaeb7f6-0684-4a2d-99e6-4b3825768951@e23g2000prf.googlegroups.com...
Quote:
Hello everybody!

I have created a UserForm with 2 listboxes (comboboxes). The data for
those combo's is from an Access Database ( a table with 2 coloms).


I work with WORD/Access XP.


colomn 1: countries
colomn 2: cities


for example:
USA NewYork
France Paris
USA Washington


I need a macro that will enable me to choose a value in combobox 1
(for example: USA) and in combobox 2 I will get only the cities of
USA
(for example: New-York, Washington... end so on).


I will be very grateful for your HELP!!


Iris
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Computer Forum Forum Index -> microsoft word programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Computer Forum