E
Ellen Leonard via AccessMonster.com
I have the following code in a subform
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me![Cycle_Number] = Nz(DMax("Cycle_Number", "Inbound", "[CustomerID] = " &
[Forms]![Mid Tier Customers]![CustomerID]), 0) + 1
End Sub
and it works!
However, the field "Cycle_Number" doesn't show the value until I leave the
record and return. How do I have the value show up right away so the user
can see it.
Thanks all for your help.
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me![Cycle_Number] = Nz(DMax("Cycle_Number", "Inbound", "[CustomerID] = " &
[Forms]![Mid Tier Customers]![CustomerID]), 0) + 1
End Sub
and it works!
However, the field "Cycle_Number" doesn't show the value until I leave the
record and return. How do I have the value show up right away so the user
can see it.
Thanks all for your help.