B
babs
I have the below code added to the after update event of the grossweight
field. the default value of both grossweight and truck hours for a new
record is 0.
When I go to a new record both are 0 but if I want to put some value in the
truckhours it is LOCKED even though the default grossweight is 0 and it
should be unlocked. I have to input a NEW zero in the gross weight and then
I can input the truck hours.
Me.TruckHours.Locked = Not (IsNull(Me.GrossWeight) Or Me.GrossWeight = 0)
Just realizing the below code is attached to the Afterupdate of the
truckhours which is listed AFTER the gross weight
Me.GrossWeight.Locked = Not (IsNull(Me.TruckHours) Or Me.TruckHours = 0)
Is there some additional code that I can put somewhere to help so that I
don't have to reput the 0 in manually for the Grossweight so the Truckhours
is unlocked???
thanks,
barb
field. the default value of both grossweight and truck hours for a new
record is 0.
When I go to a new record both are 0 but if I want to put some value in the
truckhours it is LOCKED even though the default grossweight is 0 and it
should be unlocked. I have to input a NEW zero in the gross weight and then
I can input the truck hours.
Me.TruckHours.Locked = Not (IsNull(Me.GrossWeight) Or Me.GrossWeight = 0)
Just realizing the below code is attached to the Afterupdate of the
truckhours which is listed AFTER the gross weight
Me.GrossWeight.Locked = Not (IsNull(Me.TruckHours) Or Me.TruckHours = 0)
Is there some additional code that I can put somewhere to help so that I
don't have to reput the 0 in manually for the Grossweight so the Truckhours
is unlocked???
thanks,
barb