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



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

Answer / 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

More Visual Basic Interview Questions

Wat is multithreading in VB?

4 Answers  


by writing MACRO CODE,i want to retrive data from one spead sheet to another UI (workbook). control will search cell by cell for each row and load the data in another workbook(UI). ex: custdetails custname lastname locaton mobile pincode custdetails raj tony hyd 555555 521245 servcreqrd srvce# srvcename location srvcepincode servcreqrd 754 drilling hyd 521784 for the above example in the another workbook retrive data like this custname Raj srvce# 754 srvcepincode 521784. while retrieving data control will search cell by cell for each row.

0 Answers   CGI, Infotech,


What are the types of validations available in Visual Basic?

2 Answers   Infosys, TCS,


___,___ and __ are difference between image and picture controls.

0 Answers  


Explain Default cursor Type and LockEdits type in RDO?

0 Answers  






How should dates be implemented so they work with other language and country formats?

0 Answers  


Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table?

0 Answers  


What is Seek Method which type of record set is available this?

0 Answers  


What do you know about chaining views.

0 Answers  


Explain Get, Let, Set Properties?

5 Answers  


How can you Add API functions to your Application?

0 Answers  


Difference Types of Procedures in VB?

3 Answers   JVS, Wipro,


Categories