Refine your query behind the report.
Add this code to the criteria line in your query for the Text3 field:
<>""
Of course, this will also remove the information for Name, Location, Text1 and Text2.
Create two queries then. One with Name, Location, Text1, Text2.
Then create a second query with the balance of the table using Text3, Text4, Text5, Text6. Then add the first query, link them by the proper field (must be in both queries) and then modify the relationship to show all records in the first query even if there are no matching records in the other table.
Then create the report and put all the data in the Detail section:
Detail:
Name
Location
Text1
Text2
Text3
Text4
Text5
Text6
Then on the detail section's on format event, set the width of the controls to 0 if Text3 is null or blank, and back to whatever it should be (in twips) if it has a value. If this doesn't work, then make them move up a few lines if 3 is blank and make them invisible.
Like that.
I guess there is a better way by removing the controls if 3 is empty.
You might make two reports based on two queries, one with Text3 having a value, and one without. That is the bullet proof way.
Hope this gives you some ideas.
mmcdonal
|