|
-
Mar 6th, 2013, 03:50 AM
#1
Thread Starter
PowerPoster
From ADO to DAO
I need to trasform this ADO code for DAO, i spossible?
tks.
Code:
...
Set objCommand = New ADODB.Command
With objCommand
.ActiveConnection = CONN
.CommandText = "AGG_ALBERO1"
.CommandType = adCmdStoredProc
.Prepared = True
.Execute , , adExecuteNoRecords
Set objCommand = Nothing
End With
...
-
Mar 6th, 2013, 11:12 AM
#2
Re: From ADO to DAO
Try next
Code:
Dim Rs as Recordset
' Open your desired database here.
Set MyDB = DBEngine.Workspaces(0).OpenDatabase(...
Set Rs = MyDB.OpenRecordset("AGG_ALBERO1", dbOpenSnapshot, dbSQLPassThrough)
JG
... If your problem is fixed don't forget to mark your threads as resolved using the Thread Tools menu ...
-
Mar 6th, 2013, 01:40 PM
#3
Thread Starter
PowerPoster
Re: From ADO to DAO
 Originally Posted by jggtz
Try next
Code:
Dim Rs as Recordset
' Open your desired database here.
Set MyDB = DBEngine.Workspaces(0).OpenDatabase(...
Set Rs = MyDB.OpenRecordset("AGG_ALBERO1", dbOpenSnapshot, dbSQLPassThrough)
nice!!! tkx.
i'm new with DAO...
but this tips really spoeed up the query exceution directlly the Query in Acces databse? or exists other way?
note:
I want to migrate the project to ADO but i need to change, perpah a milion of lines, and i not have time for tath:-)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|