Good day all.
I need help understanding For Each...Next statements. I have read a lot of help files and reference material, but still do not have a grasp of how to handle various objects. Most examples that I review show the syntax and explain what goes where, but I can't seem to find any complete examples that explain how to handle objects.
Two example in my work come to mind. A form with a series of check boxes that control a report output. I would like to loop through the controls on the form to determine what items a user wants in the report. The result would be a custom sql string based on the boxes the user checked.
The second example is similar because it is a table full of blnYes/No items that should be looped through to build a custom string.
I think that I understand roughly how to reference the object in the form, but not in the table. It is very confusing because most info that I read seems to expect you to know how to reference the different objects and apparently I don't.
Any references or help would be greatly appreciated.
I need help understanding For Each...Next statements. I have read a lot of help files and reference material, but still do not have a grasp of how to handle various objects. Most examples that I review show the syntax and explain what goes where, but I can't seem to find any complete examples that explain how to handle objects.
Two example in my work come to mind. A form with a series of check boxes that control a report output. I would like to loop through the controls on the form to determine what items a user wants in the report. The result would be a custom sql string based on the boxes the user checked.
The second example is similar because it is a table full of blnYes/No items that should be looped through to build a custom string.
I think that I understand roughly how to reference the object in the form, but not in the table. It is very confusing because most info that I read seems to expect you to know how to reference the different objects and apparently I don't.
Any references or help would be greatly appreciated.