KenHigg
Registered User
- Local time
- Today, 18:07
- Joined
- Jun 9, 2004
- Messages
- 13,327
Can anyone see why this returns -1 in the msgbox?
kh
Code:
Dim tstrTable As String
Dim cn As ADODB.Connection
Dim rs1 As ADODB.Recordset
Set cn = CurrentProject.Connection
Set rs1 = New ADODB.Recordset
tstrTable = "Table1"
rs1.Open tstrTable, cn, adOpenDynamic, adLockOptimistic
MsgBox rs1.RecordCount
rs1.Close
kh
Last edited: