I am doing convertion from DAO TO ADO FOR AN INVENTORY PROJECT
I have problem in converting this function it gives compile error
I am sure i am going wrong some where but could't trace it
Your help/tips are very much appreciated
_____DAO ____
Public Function CreateRecordSet(sQuery As String) As Recordset
Set CreateRecordSet = db.OpenRecordset(sQuery, dbOpenDynaset)
End Function
____ADO________
Public Function CreateRecordSet(sQuery As String) As ADODB.Recordset
CreateRecordSet = CreateRecordSet.Open(sQuery, Conn, adOpendynamic, adLockOptimistic)
End Function
Thanks
-M
I have problem in converting this function it gives compile error
I am sure i am going wrong some where but could't trace it
Your help/tips are very much appreciated
_____DAO ____
Public Function CreateRecordSet(sQuery As String) As Recordset
Set CreateRecordSet = db.OpenRecordset(sQuery, dbOpenDynaset)
End Function
____ADO________
Public Function CreateRecordSet(sQuery As String) As ADODB.Recordset
CreateRecordSet = CreateRecordSet.Open(sQuery, Conn, adOpendynamic, adLockOptimistic)
End Function
Thanks
-M