I have a form which includes a block of data with a number of label/textbox combinations where the label is the item and the text box is the quantity. When I produce a report based on the Form, I want to hide the label/textbox combination where the textbox is empty (which I can do) but I don't want any gaps in the list on the Report.
For example, I textboxes 2 and 4 were empty I don't want the Report to show label/textbox 1, a gap (for Row 2), label/textbox 3, a gap (for Row 4), label/textbox 5, label/textbox 6 etc. I want the Report to show label/textbox 1 on row 1, label/textbox 3 on row 2, etc. Note that the label and textboxes show on the Report with borders (so it looks like a grid).
I could try reading the data into a two-dimensional array, excluding the empty items, then print the array out but I am not sure how to format the printout in code to give 'boxes'.
Any ideas.
I am using Access 2002 running under Windows XP
For example, I textboxes 2 and 4 were empty I don't want the Report to show label/textbox 1, a gap (for Row 2), label/textbox 3, a gap (for Row 4), label/textbox 5, label/textbox 6 etc. I want the Report to show label/textbox 1 on row 1, label/textbox 3 on row 2, etc. Note that the label and textboxes show on the Report with borders (so it looks like a grid).
I could try reading the data into a two-dimensional array, excluding the empty items, then print the array out but I am not sure how to format the printout in code to give 'boxes'.
Any ideas.
I am using Access 2002 running under Windows XP