R
Richard
I have a form with a lenghty If Then Else code that works perfectly however
I have to open the form and cycle through all of the records to update each
record. I'm checking conditions (several) to see if an order is on time,
late, not scheduled to run ect. There are several hundred orders per day. Is
there a way to update all of the records without opening the form or is
there a better way of doing this? The code is in the OnCurrent event.
Code;
If [DueShipTime] > [Dispatch Date Time] Then
[OnTime] = "On Time"
ElseIf [Sched Qty] = 0 Then
[OnTime] = "Not Scheduled"
ElseIf [Ship Qty] = 0 Then
[OnTime] = "Not Shipped"
ElseIf IsNull([Dispatch Date Time]) Then
[OnTime] = "No Dispatch Time"
Else: [OnTime] = "Late"
End If
I have to open the form and cycle through all of the records to update each
record. I'm checking conditions (several) to see if an order is on time,
late, not scheduled to run ect. There are several hundred orders per day. Is
there a way to update all of the records without opening the form or is
there a better way of doing this? The code is in the OnCurrent event.
Code;
If [DueShipTime] > [Dispatch Date Time] Then
[OnTime] = "On Time"
ElseIf [Sched Qty] = 0 Then
[OnTime] = "Not Scheduled"
ElseIf [Ship Qty] = 0 Then
[OnTime] = "Not Shipped"
ElseIf IsNull([Dispatch Date Time]) Then
[OnTime] = "No Dispatch Time"
Else: [OnTime] = "Late"
End If