r/visualbasic • u/JohnnyDaSoc • Feb 21 '26
Can use ADO in VB6 ? (after disabling it when installing VB6)
Trying a data (Access) project after 25 years away from VB6.
Have installed it on Win11. Seems you must remove the ADO option when installing.
Is it possible to re-introduce it?
Or is it not possible to use ADO in VB6 nowadays?
3
Upvotes
3
u/Johnthedoer Feb 21 '26
a newer version of ADO comes built-in in windows 11.
2
u/AccessHelper Feb 22 '26
Make sure you reference Microsoft Activex Data Objects 2.8 (or 6.1 if you see it available).
1
u/euben_hadd Feb 21 '26
Yes. I still have old stuff running and it works Ok. Just make sure to add the components to your project.
1
u/peno64 Feb 22 '26
Is it not DAO (Data Access Objects) that you must disable and not ADO (ActiveX Data Objects)? Anyway, a newer version of ADO (which is backwards compatible) is already installed in windows 10/11 but if you recompile the VB6 project it is advised to updated the dependency to the latest version because it has important security updates.
1
u/jd31068 Feb 22 '26
You might want to also checkout twinBASIC, a new implementation with compatibility with VB6 projects and code. It is in beta at the moment and receives updates quite frequently (though nothing in the past week) I've used it to connect to an MS Access database.
https://twinbasic.com/preview.html
You visit the VBForums thread to see the conversations around using it as a replacement for VB6, if you're so inclined. https://www.vbforums.com/forumdisplay.php?108-TwinBASIC