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