ADODC & DATACOMBO Problem

freemind

New member
Local time
Today, 20:38
Joined
Jan 25, 2005
Messages
7
Hi folks!

I have a problem.
I have an ADODC that open a query. I have linked an DATACOMBO to ADODC.
Ok. In execution time, I want to requery the ADODC with a filter.
In Example:
ADODC1.Recordset.Filter = "ID=" & iCode
(This works fine, because I check the ADODC1.Recordset.Recordcount and it's ok)

The problem begins when I want to update the DATACOMBO in execution time with the new recordset result. How Can I do this? Or, Is possible?

Thank you in advance!
freemind.
 
Why not just use the Requery method of the combobox?
 
Hi mresann!

In the DataCombo (or Combobox or DBcombo) I can't find the ReQuery method.
You know where is? Or, you know other options?

Thanks in advance.
freemind.
 
Let me make sure we are on the same page.

YOu are trying to update a filter for the record source for a combo box named "COMBOBOX".

After you assign the record source to COMBOBOX, type the following code:

COMBOXBOX.Requery

That method (NOT action, which you may be confused with) will refresh the combobox control.
 
Requery method lost

Hi again!

I'm talking about VB6 and I don't find this method for combobox object.
I'm too lost.

Thanks
freemind
 

Users who are viewing this thread

Back
Top Bottom