Posted: Tue Dec 11, 2007 9:54 am Post subject: How to Populate One ListBox Based On Another ListBox
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).
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).
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