Binding to VB's Data Control 
Author Message
 Binding to VB's Data Control


I just starting using VB4's Data Control and binding other
controls to it. It works fine as long as the data control
and the bound control are on the same form, but not else.

Let's say that the data control dc is on form1 and on form2 we
have a text field I want to bind to the data control,
specifying "form1!dc" as datasource.
Even though form1 is loaded, it doesn't work. Why?

The reason I want to do this: I have one main form giving an
overview of a table (Data control + bound DBGrid), and several
forms giving detail views of the same table. And if possible,
I'd like to access the same data control all the time instead
of having a data control on every form and then manually assuring
that they all have the same record set.

Help appreciated, thanks.

Stephan W. Haller
Matsushita Electric Works, Ltd.      Tel.    (06) 906 - 8075
Central Research Laboratory          Fax     (06) 904 - 7104

"   The brain is a wonderful organ.  It starts working the moment "
"   you get up and does not stop until you get into the office.   "
"                                          - Robert Frost    "

Mon, 31 Aug 1998 03:00:00 GMT  
 Binding to VB's Data Control
Try using DAO objects instead of the control. Just make your recordset
public and bind the controls when the form is loaded. Make sure that when
you requery that you rebind the controls.

Wed, 02 Sep 1998 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Data-bound Masked Edit makes all data-bound controls not display data

2. Using Access 97 replication ID's with VB5 data control and other bound controls

3. Data-Bound Vs. Non-Data-Bound Controls

4. Data-Bound Vs. Non-Data-Bound Controls

5. Data-Bound Vs. Non-Data-Bound Controls

6. Binding VB OLE Control to DB without using a data control

7. OLE Bound control won't bind ADO source

8. OLE Bound control won't bind ADO source

9. OLE Bound control won't bind ADO source

10. How to create a data bound control that binds to a row

11. Data Bound User Control Not Binding

12. binding a data bound grid control programmatically


Powered by phpBB® Forum Software