Stuart Green
Registered User.
- Local time
- Today, 13:38
- Joined
- Jun 24, 2002
- Messages
- 108
I have a form that includes a yes/no tick box (field is called [dm_wo_ind] in the code below) that is completed when a case has been finished (this is done via an update query). If the tick box is completed, then I do not want some of the fields on the record to be subsequently enabled. I have tried putting the following code to the On Current event of the form but it just disables the fields regardless, even for new records. Any suggestions please. Just tipping the toe in the coding water!
Private Sub Form_Current()
If (Not IsNull([dm_wo_ind])) Then
dm_action_end.Enabled = no
reasonfinished.Enabled = no
Else
dm_action_end.Enabled = yes
reasonfinished.Enabled = yes
End If
Private Sub Form_Current()
If (Not IsNull([dm_wo_ind])) Then
dm_action_end.Enabled = no
reasonfinished.Enabled = no
Else
dm_action_end.Enabled = yes
reasonfinished.Enabled = yes
End If