I have a form that contains 10 text boxes labeled CPTCodeBox_x (where x = 1 to 10). On form load I want to set the values to 0. Instead of using 10 lines of code and setting each value to zero I am trying to use a For Next Loop with an embedded with/end with. However, I am getting an error that reads "WITH OBJECT MUST BE USER-DEFINED TYPE, OBJECT, OR VARIANT"
Code:
![]()
Please Login or Register to view this content.
Bookmarks