5
5070707
Hi all
this question might be more SQL oriented or at least database
structure...
i created a table in my SQL which contains 2 columns:
1. state
2. country
the way i input the data is:
State Country
UK London
UK Manchaster
USA NY
USA Texas
etc'
then, created two combo boxes on a simple form (visual basic 2005)
added connection string to the SQL and bound them to the combo boxes.
first STATE to combo "State" then COUNTRY to combo "Counrty"
now STATE: contains a list of states(UK, USA etc') and COUNTRY
contains a list of countries.(London, NY etc')
what i want to create is this:
when a user choose from the combo the UK state, then only the relevant
countries will
appear in the other combo box..IE: London, Manchester etc'
By the question you probably understand i don't know much about
programming, so go easy on me
Thanks,
50.
this question might be more SQL oriented or at least database
structure...
i created a table in my SQL which contains 2 columns:
1. state
2. country
the way i input the data is:
State Country
UK London
UK Manchaster
USA NY
USA Texas
etc'
then, created two combo boxes on a simple form (visual basic 2005)
added connection string to the SQL and bound them to the combo boxes.
first STATE to combo "State" then COUNTRY to combo "Counrty"
now STATE: contains a list of states(UK, USA etc') and COUNTRY
contains a list of countries.(London, NY etc')
what i want to create is this:
when a user choose from the combo the UK state, then only the relevant
countries will
appear in the other combo box..IE: London, Manchester etc'
By the question you probably understand i don't know much about
programming, so go easy on me
Thanks,
50.