Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Properties in ActiveX Controls
Message
De
21/08/2001 09:43:07
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
 
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00544388
Message ID:
00546690
Vues:
16
Thanks for you help Eric, I have another question for you....

If I create an ActiveX control that will be used to manipulate an ADO recordset. Is it possible to pass an ado recordset from the form that uses the activeX control? If so, how do I do it?

Thanks

Jim

>>>> I tried what you suggested and it worked to a point. I compiled the OCX and used it in a standard project. I then put an ADODC control on the same form. I set the DataField and DataSource properties of the OCX control, but nothing is displayed from the database when I run the project.
>>>>
>>>>What am I doing wrong?
>>>
>>>Have you tried to bind a simple text box (only to check that your datacontrol is OK)? Is the property that is set to DataField is displayed in a control?
>>>
>>>You could send me your project so I can have a look.
>
>Your control is working correctly. You only need to change one line of code in the Form_Load event of your sample.
>
>Change
DataControl1.ewDataField = "ContactName"
to
DataControl1.DataField = "ContactName"
Thanks

Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform