suchin
Jul 4th, 2000, 08:20 AM
private sub main
dim s as string
s="ODBC;DATABASE=;UID=;PWD=;DSN=prog;"
set ws =workspaces(0)
set db=ws.OpenDatabase("",dbDriverComplete,False,s)
set rs=db.OpenRecordSet("Select * from Loc",dbOpenDynaset,dbRunasync,dbOptimistic)
rs.MoveLast
Msgbox rs.RecordCount
end sub
ws,rs,db are defined public
The Problemmo:
well the recordcount shows -1 despite moving last.No other combo of type,options, in "set rs " works with odbc with access as the back end oh btw this also has to be compatible with SQL 7.0
I have also noticed that this is true for only the tables with more than a 100 records is there some option that has to be changed
Solutions required very urgently
dim s as string
s="ODBC;DATABASE=;UID=;PWD=;DSN=prog;"
set ws =workspaces(0)
set db=ws.OpenDatabase("",dbDriverComplete,False,s)
set rs=db.OpenRecordSet("Select * from Loc",dbOpenDynaset,dbRunasync,dbOptimistic)
rs.MoveLast
Msgbox rs.RecordCount
end sub
ws,rs,db are defined public
The Problemmo:
well the recordcount shows -1 despite moving last.No other combo of type,options, in "set rs " works with odbc with access as the back end oh btw this also has to be compatible with SQL 7.0
I have also noticed that this is true for only the tables with more than a 100 records is there some option that has to be changed
Solutions required very urgently