I have a page that contains many individual checkboxes, each checkbox is associated with a seat and has a distinct name based on row and seat number (ie checkbox id = "t14" for seat 14 in row t). I need to be able to set a checkbox's visible flag = False if the seat is already taken, and I am having some difficulty with it. The seats are not aligned since seating is not necissarily straight, it can be a circle or arc, so I do not want to create a subroutine to generate the checkboxes on the fly, I would rather generate all the checkboxes, then run a subroutine that would set the corresponding flags to non-visible if they are taken.
I can find all of the checkbox controls on a form, but I cannot compare them to a specific name, so I cannot change their values. Let's say I have a list of 3 seats taken {r12,r13,r14}... how can I create a subroutine that will set the checkbox flag for r12,r13,r14 = false?
Any help or points in the right direction would be helpful. Thanks!