Hello Guys,
I have a table with 20 records. I have a form that has 6 fields on it and depending on what record is selected determines the number of fields that are use.
For instance,
Type NbrConnections CallOuts
Elbow 2 1,3
Tee 3 1,2,3
Tapped Tee 4 1,2,3,6
I can probably nest 20 If statements to evaluate the "Type" field on the form and than tell it which of the 6 fields to make visible, however I was looking for a simpler solution.
I thought perhaps there was a way to use the text in the CallOuts fields to create the necessary VBA statements to change the field properties ie
Elbow 1,3
Split 1,3 into 1 and 3
Combine to create fields names "textbox"&"1" and "textbox"&"2"
Now set the properties for textbox1.visible and textbox2.visible
Thanks
I didn't find the right solution from the internet.
References:
- Splitting a Text Field and uusing the data to change field properties
advertising link removed
I have a table with 20 records. I have a form that has 6 fields on it and depending on what record is selected determines the number of fields that are use.
For instance,
Type NbrConnections CallOuts
Elbow 2 1,3
Tee 3 1,2,3
Tapped Tee 4 1,2,3,6
I can probably nest 20 If statements to evaluate the "Type" field on the form and than tell it which of the 6 fields to make visible, however I was looking for a simpler solution.
I thought perhaps there was a way to use the text in the CallOuts fields to create the necessary VBA statements to change the field properties ie
Elbow 1,3
Split 1,3 into 1 and 3
Combine to create fields names "textbox"&"1" and "textbox"&"2"
Now set the properties for textbox1.visible and textbox2.visible
Thanks
I didn't find the right solution from the internet.
References:
- Splitting a Text Field and uusing the data to change field properties
advertising link removed
Last edited by a moderator: