Forest Dragon
Jan 12th, 2000, 03:50 AM
Hi!!!
I am trying to build an ActiveX that the user can supply it a DataSource and a DataMember and then it shows all records of appropriate recordset.
I have some problems doing that. The first one is, that I need to get the recordset object by using the DataSource and the DataMember properties of my ActiveX. The DataSource can be an ADODC or a DataEnvironment. How can I know what the user has chosen? And how can I then get the recordset?
The second problem is, that VB causes problems if I try to define the DataSource and the DataMember properties by myself without using the Extender's properties. I wrote a little program that tests my ActiveX and set the DataSource of my ActiveX to an ADODC I put on the same form. When I tried to run it, VB crashed before the first instruction in the Form_Load event!!!
What's wrong? Can't I write my own DataSource and DataMember properties?
The DataCombo control that comes with VB6, has the RowSource and the RowMember properties. They work well and the control is filled with the data from the recordset.
I would like to know if someone of you has the source code of this control or maybe some other control similar to it.
Thanks in advance!!!
I am trying to build an ActiveX that the user can supply it a DataSource and a DataMember and then it shows all records of appropriate recordset.
I have some problems doing that. The first one is, that I need to get the recordset object by using the DataSource and the DataMember properties of my ActiveX. The DataSource can be an ADODC or a DataEnvironment. How can I know what the user has chosen? And how can I then get the recordset?
The second problem is, that VB causes problems if I try to define the DataSource and the DataMember properties by myself without using the Extender's properties. I wrote a little program that tests my ActiveX and set the DataSource of my ActiveX to an ADODC I put on the same form. When I tried to run it, VB crashed before the first instruction in the Form_Load event!!!
What's wrong? Can't I write my own DataSource and DataMember properties?
The DataCombo control that comes with VB6, has the RowSource and the RowMember properties. They work well and the control is filled with the data from the recordset.
I would like to know if someone of you has the source code of this control or maybe some other control similar to it.
Thanks in advance!!!