deadseasquirrels
Board Regular
- Joined
- Dec 30, 2004
- Messages
- 232
I posted about this awhile ago with the heading "trouble with what ADODB Recordsets supports" Basically I was trying to use the adAddNew and adDelete methods on a disconnected recordset, but nothing seemed to work. My next step was to not even connect a recordset to a database, but rather to just use it like a data type. I did the following:
but this doesn't work either. This is a totally disconnected recordset, does anybody have any idea how I can use a recordset like a user defined data type?
Code:
Sub tester()
Dim testRS As ADODB.Recordset
Set testRS = New ADODB.Recordset
testRS.LockType = adLockOptimistic
testRS.CursorType = adOpenStatic
MsgBox testRS.Supports(adAddNew)
End Sub