What is the syntax for telling me what current record I am on in a record set using ADO? In DAO it is rst.CurrentRecord, but I can't seem to find the equivalent in ADO!!
Old DAO code:
'If Me.RecordsetClone.BOF = False Then
' Me.RecordsetClone.MoveFirst
'
' For i = 1 To Me.CurrentRecord
' If strItem = Me.RecordsetClone.Fields("ComboCustPartNum") Then
' lngRunningTot = lngRunningTot + Me.RecordsetClone.Fields("QtyGood")
' End If
' Me.RecordsetClone.MoveNext
' Next i
' Me.TotalQtyToRecord = lngRunningTot
'End If
Basically I am trying to find the sum of the QtyGood up to (and including) the current record that I am looking at when on a form. I even tried to change from a recorset clone of the current form to just making a seperate recordset, but nothing seem to work, the code above just keeps adding the first QtyGood to itself. It is like it never sees the next records value.
Old DAO code:
'If Me.RecordsetClone.BOF = False Then
' Me.RecordsetClone.MoveFirst
'
' For i = 1 To Me.CurrentRecord
' If strItem = Me.RecordsetClone.Fields("ComboCustPartNum") Then
' lngRunningTot = lngRunningTot + Me.RecordsetClone.Fields("QtyGood")
' End If
' Me.RecordsetClone.MoveNext
' Next i
' Me.TotalQtyToRecord = lngRunningTot
'End If
Basically I am trying to find the sum of the QtyGood up to (and including) the current record that I am looking at when on a form. I even tried to change from a recorset clone of the current form to just making a seperate recordset, but nothing seem to work, the code above just keeps adding the first QtyGood to itself. It is like it never sees the next records value.