
Originally Posted by
ngeng4
i have a combo box and also a text box. the text box will only be appear in a form when the combo box been filled up by certain data. ive used this code. but it didnt work. both whether it is completed or not completed, the text box will appear. how can i solve this problem?
Private Sub proj_status_AfterUpdate()
If Me.proj_status = "completed" Then
Me.proj_year.Visible = True
MsgBox "Please enter a completed year"
Me.proj_year.SetFocus
Else
Me.proj_year.Visible = True
End If
End Sub