Can someone help me with some VB code in Access 97?
I am currently working on a form for entering address details for companies or individuals for use in a mailing list database.
The form includes (amongst other things) text boxes for the following fields:
txtCompanyName
txtIndividualFirstName
txtIndividualLastName
I have also incorporated on the form an option group with option buttons as follows:
optCompany
optIndividual
I would like to create an event procedure for the OnClick event property of the optCompany option button so that when the optCompany option button is selected, the txtIndividualFirstName and txtIndividualLastName text boxes are not visible on the form.
A similar event procedure for the OnClick event property of the optIndividual option button would make the txtCompanyName text box invisible on the form.
By the way, I have made the optCompany option button the default selection in the option group.
Any help / ideas would be greatly appreciated.