Icon View Incident Report

Serious Serious
Reported By: Deneys
Reported On: 9/20/2006
For: Version 4.24 Build 1
# 2212 Using While Not BOF/Prior Loop in VB6 Causes Error

There seems to be a bug when using the odbc drivers when calling the BOF Procedure. (EOF works fine) this always happens on large record sets.

'Reference "Microsoft DAO 3.6 Object Library"
'Note Record Count is 4938

Public RecSet As Recordset
Public DB As Database
Public WS As Workspace

Private Sub Form_Load()
  Set WS = CreateWorkspace("", "", "", dbUseODBC)
  Set DB = WS.OpenDatabase("Smart Charts", False, True, "ODBC;dsn=Smart
Charts;TablePassword1=greenmoney;")
End Sub


Private Sub Command1_Click()

  Dim sDate As String
  On Error GoTo ErrHndl
  
  Set RecSet = DB.OpenRecordset("SELECT * FROM PriceData WHERE sName = 'ABSA'",
dbOpenDynaset, dbExecDirect, dbOptimisticValue)
  
  'THIS WORKS FINE
  RecSet.MoveFirst
  Do Until RecSet.EOF
     sDate = RecSet("sDate")
     RecSet.MoveNext
  Loop
  
  'THIS GIVES ERRORS
  RecSet.MoveLast
  Do Until RecSet.BOF
     sDate = RecSet("sDate")
     RecSet.MovePrevious
  Loop
  
  
Exit Sub
ErrHndl:
'ERROR ON RECORD 37
MsgBox "Error " & RecSet.AbsolutePosition

End Sub



Resolution Resolution
Fixed Problem on 9/22/2006 in version 4.25 build 1


Products Affected Products Affected
DBISAM ODBC Client-Server
DBISAM ODBC Client-Server with Source
DBISAM ODBC Standard
DBISAM ODBC Standard with Source
DBISAM ODBC Trial

Image