Swiftraven
Technical User
Hi,
I have looked through prior posts and haven't been able to find out exactly how to do this since I am a total newb at access.
My problem is, I have a Value list called ProblemType that contains 3 items, Hardware, Software and Component. I also have two text boxes called Software Program and Sw Test Number that are the next two fields to be entered.
What I need is when the person chooses Software in the drop down menu on the form, I want them to be able to type in the infomation in the two text boxes, if they choose either Hardware or Component, I want the text boxes greyed out so that the default ("Does Not Apply" text appears and they can not change it.
Tab_IncidentRecord is the name of the table that the form is updating.
I tried an On Change Event:
Private Sub ProblemType_Change()
If [Tab_IncidentRecord]![ProblemType] = "Software" Then
[Tab_IncidentRecord]![SWProgram].Enabled = False
[Tab_IncidentRecord]![SWTestNum].Enabled = False
Else
[Tab_IncidentRecord]![SWProgram].Enabled = True
[Tab_IncidentRecord]![SWTestNum].Enabled = True
End If
End Sub
that I saw from another post but this didnt work.
Any help is GREATLY appreciated.
Sorry for the newbie question
Thanks
Jason
I have looked through prior posts and haven't been able to find out exactly how to do this since I am a total newb at access.
My problem is, I have a Value list called ProblemType that contains 3 items, Hardware, Software and Component. I also have two text boxes called Software Program and Sw Test Number that are the next two fields to be entered.
What I need is when the person chooses Software in the drop down menu on the form, I want them to be able to type in the infomation in the two text boxes, if they choose either Hardware or Component, I want the text boxes greyed out so that the default ("Does Not Apply" text appears and they can not change it.
Tab_IncidentRecord is the name of the table that the form is updating.
I tried an On Change Event:
Private Sub ProblemType_Change()
If [Tab_IncidentRecord]![ProblemType] = "Software" Then
[Tab_IncidentRecord]![SWProgram].Enabled = False
[Tab_IncidentRecord]![SWTestNum].Enabled = False
Else
[Tab_IncidentRecord]![SWProgram].Enabled = True
[Tab_IncidentRecord]![SWTestNum].Enabled = True
End If
End Sub
that I saw from another post but this didnt work.
Any help is GREATLY appreciated.
Sorry for the newbie question
Thanks
Jason