M
Marcello
Hi everyone,
I'm using Access2003 and I have a problem with an update-after-delete
condition.
Private Sub DESCRIPTION_AfterUpdate()
Dim blnFlag As Boolean
If Me!DESCRIPTION.Column(1) Like "A" Then
blnFlag = True
End If
Forms("Form1").A1.Visible = blnFlag
Forms("Form1").B1.Visible = Not blnFlag
Forms("Form1").A2.Visible = blnFlag
Forms("Form1").B2.Visible = Not blnFlag
End Sub
I created a form with a subform. In the subform I realized a combo
with 2 descriptions: A and B. The selection of A or B influences the
visibility of a couple of buttons on the form.
Everything works fine as long as I just type A or B, but if I delete
the last input, the form doesn't update to the right value, but keeps
stuck to the last value typed.
Question: Do you know what should I do to implement this update-after-delete
condition?
Thank you all for your time and consideration.
M.
I'm using Access2003 and I have a problem with an update-after-delete
condition.
Private Sub DESCRIPTION_AfterUpdate()
Dim blnFlag As Boolean
If Me!DESCRIPTION.Column(1) Like "A" Then
blnFlag = True
End If
Forms("Form1").A1.Visible = blnFlag
Forms("Form1").B1.Visible = Not blnFlag
Forms("Form1").A2.Visible = blnFlag
Forms("Form1").B2.Visible = Not blnFlag
End Sub
I created a form with a subform. In the subform I realized a combo
with 2 descriptions: A and B. The selection of A or B influences the
visibility of a couple of buttons on the form.
Everything works fine as long as I just type A or B, but if I delete
the last input, the form doesn't update to the right value, but keeps
stuck to the last value typed.
Question: Do you know what should I do to implement this update-after-delete
condition?
Thank you all for your time and consideration.
M.