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

What about DLL calls that require callbacks?

1181


Difference between Recordset and Resultsets.

3789


What is the Windows API?

1198


What is the use of debug Window?

1799


How would you Create a Query Builder and Explain its uses ?

1929


How to find the current record position in data control?

1634


Draw Sequence Modal of DAO? Explain.

1928


How can Visual Basic be used for server-side scripting?

699


What is data binding in vb net?

687


How can I speed up my VB database application?

1230


how a multiple routing works ?

2468


How can you save and Get data from Clipboard/ Recordset object consists what?

744


1s it posible to Create Tables Through Querydef?

1885


What is the use of NEW Keyword? Explain.

1742


How can you get selected file from file system Control?

1591