lchurch
07-02-2007, 04:30 PM
I'm using this code:
' Export of RONotes
Set MyConn = New ADODB.Connection
MyConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\RONotes.MDB;"
MyConn.Open
MsgBox (MyConn.State)
Set MyRecSet = MyConn.Execute("SELECT * FROM SFtable")
MsgBox (MyRecSet.RecordCount)
.................................................
To open a database and get values from a table. The MyConn.state always shows "1", but MyRecSet.RecordCount always shows "-1". But this table has 2 rows that are populated.
What am I doing wrong?
' Export of RONotes
Set MyConn = New ADODB.Connection
MyConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\RONotes.MDB;"
MyConn.Open
MsgBox (MyConn.State)
Set MyRecSet = MyConn.Execute("SELECT * FROM SFtable")
MsgBox (MyRecSet.RecordCount)
.................................................
To open a database and get values from a table. The MyConn.state always shows "1", but MyRecSet.RecordCount always shows "-1". But this table has 2 rows that are populated.
What am I doing wrong?