ShimmyShamrock
New member
- Local time
- Today, 01:30
- Joined
- Sep 6, 2006
- Messages
- 1
Greetings,
I have an application written in VB 5, which opens an Access 97 MDB, executes stored queries - that's it! Simple enough. Now, I've upgraded my Access 97 MDB to Access 2003 MDB to point to an Oracle 10G server.
However, I've upgraded to VS 2005 (yikes) and proceeded with the upgrade wizard - it broke everything!
I wondering if anyone could provide a simple translation for the following VB5 code to VS 2005 without using the "Add Data Sources" stuff.
Dim db As DAO.Database
Dim qd As DAO.QueryDef
Set db = OpenDatabase("ACCESS97.MDB")
Set qd = db.QueryDefs("BUILD LOCAL TABLE FROM ODBC SOURCE")
qd.Execute
Thanks so much.
I have an application written in VB 5, which opens an Access 97 MDB, executes stored queries - that's it! Simple enough. Now, I've upgraded my Access 97 MDB to Access 2003 MDB to point to an Oracle 10G server.
However, I've upgraded to VS 2005 (yikes) and proceeded with the upgrade wizard - it broke everything!
I wondering if anyone could provide a simple translation for the following VB5 code to VS 2005 without using the "Add Data Sources" stuff.
Dim db As DAO.Database
Dim qd As DAO.QueryDef
Set db = OpenDatabase("ACCESS97.MDB")
Set qd = db.QueryDefs("BUILD LOCAL TABLE FROM ODBC SOURCE")
qd.Execute
Thanks so much.
Last edited: