G
George Hester
In this example:
http://support.microsoft.com/default.aspx?scid=kb;en-us;248255
I just put one command button on a form and this is the code for the Click event:
Private Sub Command1_Click()
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
Dim rec As ADODB.Record
Set rec = New ADODB.Record
Dim stm As ADODB.Stream
Set stm = New ADODB.Stream
'Specify adCmdTableDirect when opening a document or folder
rs.Open "test.txt", "Provider=MSDAIPP.DSO;" & _
"Data Source=http://localhost/test", _
adOpenForwardOnly, adLockReadOnly, adCmdTableDirect
Debug.Print rs.RecordCount
End Sub
There are no reords. At least that is what the result -1 is telling me I think. What's wrong?
Thanks.
http://support.microsoft.com/default.aspx?scid=kb;en-us;248255
I just put one command button on a form and this is the code for the Click event:
Private Sub Command1_Click()
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
Dim rec As ADODB.Record
Set rec = New ADODB.Record
Dim stm As ADODB.Stream
Set stm = New ADODB.Stream
'Specify adCmdTableDirect when opening a document or folder
rs.Open "test.txt", "Provider=MSDAIPP.DSO;" & _
"Data Source=http://localhost/test", _
adOpenForwardOnly, adLockReadOnly, adCmdTableDirect
Debug.Print rs.RecordCount
End Sub
There are no reords. At least that is what the result -1 is telling me I think. What's wrong?
Thanks.