B
Balmora
Ok! this is somting defrant, i want to be able to transfer a value from one
record to the next with some vb. Here is what i have, in table1: ID
(AutoNumber) data1 (Currency) data2 (Currency) datatotal (Currency)
The hole idea is to transfer forward the value of the field datatotal to the
next record but not to datatotal but to data1.
i have found that if i use:
Private Sub datatotal_AfterUpdate()
With Me.datatotal
.DefaultValue = .Value
End With
End Sub
I can send forward the value to the next record in datatotal
i have also found that if i use:
Private Sub datatotal_AfterUpdate()
If Not IsNull(Me.datatotal) Then
Me.data1 = Me.datatotal
End If
End Sub
I can send the value of datatotal to data1 but only in the same record set.
My question would be now, how can i combine both together so it can send
forward the value of datatotal to data1 in the next record?
record to the next with some vb. Here is what i have, in table1: ID
(AutoNumber) data1 (Currency) data2 (Currency) datatotal (Currency)
The hole idea is to transfer forward the value of the field datatotal to the
next record but not to datatotal but to data1.
i have found that if i use:
Private Sub datatotal_AfterUpdate()
With Me.datatotal
.DefaultValue = .Value
End With
End Sub
I can send forward the value to the next record in datatotal
i have also found that if i use:
Private Sub datatotal_AfterUpdate()
If Not IsNull(Me.datatotal) Then
Me.data1 = Me.datatotal
End If
End Sub
I can send the value of datatotal to data1 but only in the same record set.
My question would be now, how can i combine both together so it can send
forward the value of datatotal to data1 in the next record?