M
Maver1ck666
I have a main form which pulls down data based on the form it was open from.
What I want it to do is to look at a field it has just updated, and
depending on its result, either make AllowEdits = false or true (and a couple
of others).
I used the code:
If [Forms]![Frm UserViewBreach]![Str_Status] = "Rejected" Then
Me.AllowEdits = True
Me.AllowAdditions = True
Me.AllowDeletions = True
CmdSubmit.Enabled = True
Else
Me.AllowEdits = False
Me.AllowDeletions = False
Me.AllowAdditions = False
CmdSubmit.Enabled = False
End If
Now it runs through the code but I can can still make changes etc on the form.
What am I missing please?
What I want it to do is to look at a field it has just updated, and
depending on its result, either make AllowEdits = false or true (and a couple
of others).
I used the code:
If [Forms]![Frm UserViewBreach]![Str_Status] = "Rejected" Then
Me.AllowEdits = True
Me.AllowAdditions = True
Me.AllowDeletions = True
CmdSubmit.Enabled = True
Else
Me.AllowEdits = False
Me.AllowDeletions = False
Me.AllowAdditions = False
CmdSubmit.Enabled = False
End If
Now it runs through the code but I can can still make changes etc on the form.
What am I missing please?