Click to See Complete Forum and Search --> : DataCombo & DataEnvironment Refresh


Jaime Herrero
May 19th, 1999, 05:07 AM
Hi everyone

Iīm in trouble with DataCombo an DE.

I have a DataCombo with a RowSource established to a DataEnvironment Command Recordset (cmcountry-->rscmcountry)
I try to change this Command recordset as follows

rscmcountry.Close
rscmcountry.Source= <...FILTERED SQL STATEMENT...>
rscmcountry.Open
DataCOmbo3.Refresh (I also tried DataCombo3.REfill)

I can see in the Debugger that rscmcountry has the correct values, but the combo doesnīt refresh
at all... the comboīs visible items after refilling is 0! :(

I tried to bound the Combo directly to the Command
(RowSource=cmCountry), but when i change the command Source to fiulter the register, the
rscmcountry sourvce didnīt change with its command source, and the contents of the combo are
the same as the original commandīs source :(

At last, iīve tried to declare an ADODB.REcordset,
execute the command

Set rsCountries= cmCountry.Execute
But when i bound rsCountries to my combo, itīs not
filled.

The only way i get the correct results is using
an ADODC, but i think thatevery ADODC consums a
different connection, and when i have more combos,
I will be spending many resources.

Can you help me? Please answer if you know the answer or can send me a related code.