J
Jonathan Smith
I am using Access 2002, in a Multi-User, Windows XP Client/Small Business
Server 2000 environment.
I have a form, bound to a table that has the following text fields:
txtDiscipline
txt1
txt2
txt3
txt4
txt5
I want the visibility of txt1 through txt5 to be dependant upon the value
in txtDiscipline. I have initially set the Visible to False in the
Property Sheet of each field. Upon updating txtDiscipline, I would like
the appropriate fields to become visible, and available for User Input.
In the AfterUpdate property of txtDiscipline, I have the following:
If ("txtDiscipline") = OT Then ("txt1").Visible = True
If ("txtDiscipline") = PT Then ("txt2").Visible = True
If ("txtDiscipline") = PT Then ("txt3").Visible = True
If ("txtDiscipline") = ST Then ("txt4").Visible = True
If ("txtDiscipline") = ST Then ("txt5").Visible = True
The above CODE does not return the expected result of the fields becoming
visible given the content of txtDiscipline.
Any help would be appreciated.
Jon
Server 2000 environment.
I have a form, bound to a table that has the following text fields:
txtDiscipline
txt1
txt2
txt3
txt4
txt5
I want the visibility of txt1 through txt5 to be dependant upon the value
in txtDiscipline. I have initially set the Visible to False in the
Property Sheet of each field. Upon updating txtDiscipline, I would like
the appropriate fields to become visible, and available for User Input.
In the AfterUpdate property of txtDiscipline, I have the following:
If ("txtDiscipline") = OT Then ("txt1").Visible = True
If ("txtDiscipline") = PT Then ("txt2").Visible = True
If ("txtDiscipline") = PT Then ("txt3").Visible = True
If ("txtDiscipline") = ST Then ("txt4").Visible = True
If ("txtDiscipline") = ST Then ("txt5").Visible = True
The above CODE does not return the expected result of the fields becoming
visible given the content of txtDiscipline.
Any help would be appreciated.
Jon