how can i connect the samble database that comes with vb-6
(biblio.mdb) to a datagrid using code?

ie what code i have to put in load event

Answer Posted / karan munjal

make the adodc connection with database from its property
connection string & connect datagrid with adodc & write the code


adodc_.recordsource = "select * from table name"
datagrid.refresh
adodc.refresh

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the Steps in Creating an ActiveX Control?

2059


Which method is preferred to save data like database to the disk?

1616


What is "Reserved Error -1209"?

1422


How can you Implement windows functionality in VB?

1778


How do I dial a phone number without using the MSCOMM VBX?

1364






What is the use of OLE?

2116


How do you make a TEXTBOX read only? Or, how do I prevent the user from changing the text in a TEXTBOX?

1036


How can I call a 'hidden' DOS program from VB?

1103


Explain Default cursor Type and LockEdits type in RDO?

1585


Explain the usage of Web Browser Control?

1710


How about Access 2.0 compatibility?

1104


Difference between Linked Object and Embedded Object?

1881


Types of LockEdits in DAO? 51 .Types of Recordsets.

1444


__ no of controls in form.

1152


Maximum Control Names length?

2051