I'm looking at converting DAO to ADO in my app. All of my DAO connections
are of the following structure:
Dim wsName As DAO.Workspace
Dim dbName As DAO.Database
Dim rsName As DAO.Recordset
Set wsName = DBEngine.Worksp aces(0)
Set dbName = wsName.OpenData base(CurrentPro ject.FullName)
Set rsName = dbName.OpenReco rdset("SQL Statement")
I'm a real newbie with ADO and don't feel at all comfortable with it. Now to
convert to ADO, something like:
Dim cnnName As New ADODB.Connectio n
Dim rsName As New ADODB.Recordset
and here's where I start to get confused:
Set cnnName = Application.Cur rentProject.Con nection????
rsName.Open "SQL Statement" ????
Since I have several hundred of these DAO constructs, I'm trying to figure
out if there is a way I could write code to accomplish the conversion.
Thanks for any help.
--
Message posted via AccessMonster.c om
http://www.accessmonster.com/Uwe/For...ccess/200602/1