Try
If Me.IRStatus_cbo = "Closed" Then
Me.IRFinDateTime_txt.Locked = False
ElseIf Me.SystemDwnTime_chk.Value = True Then
Me.Create_Outage_cmd.Enabled = True
Else
Me.IRFinDateTime_txt.Locked = True
Me.Create_Outage_cmd.Enabled = False
End If
You may also want to consider putting code into the first
element for Me.Create_Outage_cmd and into the second
element for Me.IRFinDateTime_txt.
Hope This Helps
Gerald Stanley MCSD
-----Original Message-----
I can't seem to find the errors in my code here, but it
doesn't seem to disable when there is no check in the box
for that record.
Private Sub Form_Current()
If Me.IRStatus_cbo = "Closed" Then
Me.IRFinDateTime_txt.Locked = False
ElseIf Me.SystemDwnTime_chk.Value = True Then
Me.Create_Outage_cmd.Enabled = True
Else: Me.IRFinDateTime_txt.Locked = True And
Me.Create_Outage_cmd.Enabled = False