ineedyourhelp
MIS
Thought this would be an easy one, but I'm having trouble....
I have two unbound txt boxes (txtbox1 and txtbox2) on my form that both contain Value Lists. In both txtboxes, I have the column counts set to 2
Here's what they contain...(dummy entries)
Row Source of txtbox1... 01;"Mike";02;"Tim";03;"Scott"
Row Source of txtbox2... 01;"Name";02;"Address";03;"City"
I am looking for a way to hide particular values from the value list in txtbox2, if certain conditions are met in txtbox1.
In other words, if a user chooses "Mike" in txtbox1, I would like to hide "Address" from txtbox2.
I tried something like this, but had no luck..
Private Sub txtbox1_AfterUpdate()
If txtReportName = "01" Then
Me![txtbox2]???.Visible = -1
End Sub
Is there a way to specify a particular value from the value list in txtbox2 using this logic?
Thanks
I have two unbound txt boxes (txtbox1 and txtbox2) on my form that both contain Value Lists. In both txtboxes, I have the column counts set to 2
Here's what they contain...(dummy entries)
Row Source of txtbox1... 01;"Mike";02;"Tim";03;"Scott"
Row Source of txtbox2... 01;"Name";02;"Address";03;"City"
I am looking for a way to hide particular values from the value list in txtbox2, if certain conditions are met in txtbox1.
In other words, if a user chooses "Mike" in txtbox1, I would like to hide "Address" from txtbox2.
I tried something like this, but had no luck..
Private Sub txtbox1_AfterUpdate()
If txtReportName = "01" Then
Me![txtbox2]???.Visible = -1
End Sub
Is there a way to specify a particular value from the value list in txtbox2 using this logic?
Thanks