Hi,
I have a set of 19 questions in my database, each question has a set of 5 choices (5 boolean fields) which are all defined as Check Boxes (True/False):
[Ans1], [Ans2], [Ans3], [Ans4] & [Ans5]
When I tick one of these [Ans] checkboxes on my form I want to be able to make sure that all the other ones are set to 'False' and that they are also disabled on my form. Unticking the one 'True' answer would re-enable all of them for selection again.
Can someone give a heads up on how to go about coding this open routine in vba?
I can hardcode each question in vba checking each field, but this would be extremely long-winded, there must be a way of writing any open ended sub-routine that allows me to pass in these boolean fields, set their values and disable them accordingly?
Thanks in advance
Don
I have a set of 19 questions in my database, each question has a set of 5 choices (5 boolean fields) which are all defined as Check Boxes (True/False):
[Ans1], [Ans2], [Ans3], [Ans4] & [Ans5]
When I tick one of these [Ans] checkboxes on my form I want to be able to make sure that all the other ones are set to 'False' and that they are also disabled on my form. Unticking the one 'True' answer would re-enable all of them for selection again.
Can someone give a heads up on how to go about coding this open routine in vba?
I can hardcode each question in vba checking each field, but this would be extremely long-winded, there must be a way of writing any open ended sub-routine that allows me to pass in these boolean fields, set their values and disable them accordingly?
Thanks in advance
Don