jpetiot
06-09-2002, 11:40 AM
Hi all,
I am looking for a solution to the following scenario: I create a combo 'market1' which is databound to DataMarket1, let's say this combo has 10 items, I would like that when the user selects one item 'Computers and telecoms' it generates the list of combo 'market2' with item1 'computers' and item2 'telecoms'.
I tried using a table which has both columns 'market1' and 'market2' as follows:
ID - market1 - market 2
1 - computers and telecoms - computers
2 - computers and telecoms - telecoms
I tried to use the following SQL statement for DataMarket2:
SQLstrActivite2 = "SELECT * FROM [CMBSRC_Market2] WHERE Market1=" & "'" & DBCmbMarkete1.BoundText & "'"
For some reason this does not work and I keep getting error messages.
Some light would be welcome on this scenario...
Thanks,
Julien
I am looking for a solution to the following scenario: I create a combo 'market1' which is databound to DataMarket1, let's say this combo has 10 items, I would like that when the user selects one item 'Computers and telecoms' it generates the list of combo 'market2' with item1 'computers' and item2 'telecoms'.
I tried using a table which has both columns 'market1' and 'market2' as follows:
ID - market1 - market 2
1 - computers and telecoms - computers
2 - computers and telecoms - telecoms
I tried to use the following SQL statement for DataMarket2:
SQLstrActivite2 = "SELECT * FROM [CMBSRC_Market2] WHERE Market1=" & "'" & DBCmbMarkete1.BoundText & "'"
For some reason this does not work and I keep getting error messages.
Some light would be welcome on this scenario...
Thanks,
Julien