Geoff Convery
Registered User.
- Local time
- Yesterday, 19:50
- Joined
- Jul 21, 2006
- Messages
- 33
I've been using recordsets in Access 97 and Access 2000 and now I have been trying to use them in Access 2003. If I use this code (which appears to me to be correct according to the online help in Access) then Access complains at runtime that ADODB.recordset is an undefined user-defined type.
Dim rst As ADODB.Recordset
Dim strCriteria As String
strCriteria = "idTransactionID = " & Me!numTransactionID
Set rst.Connection = CurrentProject.Connection
rst.CursorType = adopenDynamic
rst.locktype = adLockOptimistic
rst.Open "tblUnknownTransaction"
If I drop the "ADODB." bit then Access complains at runtime about the CursorType, locktype and Open properties
Have I missed something? Is there something wrong with my installation of Access 2003? or have Microsoft developed an aversion to the use of recordsets at 2003?
Hope someone can help
Thanks in anticipation
Dim rst As ADODB.Recordset
Dim strCriteria As String
strCriteria = "idTransactionID = " & Me!numTransactionID
Set rst.Connection = CurrentProject.Connection
rst.CursorType = adopenDynamic
rst.locktype = adLockOptimistic
rst.Open "tblUnknownTransaction"
If I drop the "ADODB." bit then Access complains at runtime about the CursorType, locktype and Open properties
Have I missed something? Is there something wrong with my installation of Access 2003? or have Microsoft developed an aversion to the use of recordsets at 2003?
Hope someone can help
Thanks in anticipation