M
mistux
What is the syntax for telling me what current record I am on in
record set using ADO? In DAO it is rst.CurrentRecord, but I can't see
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 (an
including) the current record that I am looking at when on a form.
even tried to change from a recorset clone of the current form to jus
making a seperate recordset, but nothing seem to work, the code abov
just keeps adding the first QtyGood to itself. It is like it neve
sees the next records value
record set using ADO? In DAO it is rst.CurrentRecord, but I can't see
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 (an
including) the current record that I am looking at when on a form.
even tried to change from a recorset clone of the current form to jus
making a seperate recordset, but nothing seem to work, the code abov
just keeps adding the first QtyGood to itself. It is like it neve
sees the next records value