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
What are the tools in visual basic?
How to get Cursor position using API?
How would you attach an ActiveX control in Your Application?
What is ActiveX Document?
What is the use of command Object?What are the various types of variables?
what are the Differences between ActiveX Control and Standard Control?
Through which protocol OLEDB components are interfaced?
Is the Access Engine and Visual Basic Pro good enough for database work?
How would you create your application in DHTML?
what are the Differenct Types of Procedures in VB?
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?
How would you convert a form into document?
What is meant by building a recordset.
Why API functions are Required?
What do you know about chaining views.