To get started go to Project menu, add a Form and use the DataForm Wizard. On the appropriate page choose 'Use ADO code'.
From there you will get a good starter, with the basic connection code in the Form_Load event. You can modify to suit from there.
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
Yes, the dataform wizard is a good start.
Make sure you change the references to ADO from 2.0/2.1 to at least 2.5 so all the events created for ADO by the dataform wizard work.
I think there also are pleanty of examples in this forum on how to create a recordset from ADO.
Once done, you only need to set the grid's datasource to the ADO recordset.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.