Using another form's Data control

Using another form's Data control

Post by Anthony Boudouva » Tue, 04 Nov 1997 04:00:00



Hi to all,

i have a form1 that contains a data1 control, connected
to a dBase database.
Everything is working fine.
I then add a form to the project ( form2 ) and i add a dbGrid on it.
How can i use the form1.data1 from form2 so i can connect it
to form2.dbGrid ?
For example, i set the form2.dbGrid  DataSource property  to
"form1.data1" by hand, but it is not working.
( at runtime the dbGrid is empty. )
Can i use form1.data1 control or i must use another data control
in form2 and connect it to the same database ?

Thanks a lot in advance !

Anthony Boudouvas

 
 
 

Using another form's Data control

Post by Tony » Tue, 04 Nov 1997 04:00:00


Sheridans Data Widgets package has a data control you can bind across forms.
I believe you can obtain a demo at www.shersoft.com.

--
Later,
Tony Fountain
Digital Horizons, Inc.



>Hi to all,

>i have a form1 that contains a data1 control, connected
>to a dBase database.
>Everything is working fine.
>I then add a form to the project ( form2 ) and i add a dbGrid on it.
>How can i use the form1.data1 from form2 so i can connect it
>to form2.dbGrid ?
>For example, i set the form2.dbGrid  DataSource property  to
>"form1.data1" by hand, but it is not working.
>( at runtime the dbGrid is empty. )
>Can i use form1.data1 control or i must use another data control
>in form2 and connect it to the same database ?

>Thanks a lot in advance !

>Anthony Boudouvas


 
 
 

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

Does anyone know if there is a problem using Access 97's replication ID as a
primary key when programming in VB5?

I have an Access 97 database that uses AutoNumber/replication ID's to hook
up to tables with Number/replication ID fields.  When using the data
control, I get data type mismatch errors.  If I try to bind a DBCombo
control, nothing shows up in the list.  I need to use a data control because
I can't link my DBGrid controls at run time.  How can I use replication ID's
and still make use of my grid controls, etc.?  Are there any programmatic
ways to make use of the replication ID fields, or do I need to change my
database?  I don't want to re-prgram my app in Access.

2. -- Document Storage/Retrieval Systems --

3. data control's recordset invalid after new form launch

4. Error 5177, sometimes Error 5123

5. pass the value from my VB form to Data Report's label control

6. help with oracle+oraperl+web

7. Control missing from Form's controls collection

8. 2 ?'s ModifyAlias and Data model

9. Create User Control as Data Source Using ADO Data Control

10. 2 Forms, Both Using Same Data Control

11. using data control between multiple SDI forms ??

12. Using Datalist controls w/o an ADODB control on a form

13. Passing Parameters to stored parameter queries using VB 5's Data Controls