G
Guest
Hi
I have the below Form_activate event running in a orderform.
From the orderform I open a payment form..when done I close the payment form
and the orderform activates again..running the below to set the paymentstatus
of the current order. It works fine...however when opening the orderform for
the first time something odd happens in the first record..without having
"activating" the form just opened it...it sets the status to 12..only the
first record being current..
Anyone know what is wrong about this...
Thank you in advance
Mattias
Private Sub Form_Activate()
Me.Recalc
If (Me!Total2 = Me!Total) Then
Me!Status = 13
End If
If (Me!Total2 < Me!Total) Then
Me!Status = 12
End If
If (IsNull(Me!Total2)) Then
Me!Status = 10
End If
End Sub
I have the below Form_activate event running in a orderform.
From the orderform I open a payment form..when done I close the payment form
and the orderform activates again..running the below to set the paymentstatus
of the current order. It works fine...however when opening the orderform for
the first time something odd happens in the first record..without having
"activating" the form just opened it...it sets the status to 12..only the
first record being current..
Anyone know what is wrong about this...
Thank you in advance
Mattias
Private Sub Form_Activate()
Me.Recalc
If (Me!Total2 = Me!Total) Then
Me!Status = 13
End If
If (Me!Total2 < Me!Total) Then
Me!Status = 12
End If
If (IsNull(Me!Total2)) Then
Me!Status = 10
End If
End Sub