Hi Mildred,
Are you comfortable with scripting? This might be easier to accomplish using scripting instead of visual logic. Try putting this script on the "onOnline" and "onPreviewRender" - be sure to change the values after .PosY to where you want the text to show up
dim line1, line2, line3, line4, line5, line6 as xpTextObject
'Get all of the text fields
self.GetObjectByName("Category 1", line1)
self.GetObjectByName("Category 2", line2)
self.GetObjectByName("Category 3", line3)
self.GetObjectByName("Category 4", line4)
self.GetObjectByName("Category 5", line5)
self.GetObjectByName("Category 6", line6)
'Check to see if the last row has any text
if line6.text = ""
line1.visible = true
line2.visible = true
line3.visible = true
line4.visible = true
line5.visible = true
line6.visible = false
line1.PosY = 100.00
line2.PosY = 150.00
line3.PosY = 200.00
line4.PosY = 250.00
line5.PosY = 300.00
else if line5.text = ""
line1.visible = true
line2.visible = true
line3.visible = true
line4.visible = true
line5.visible = false
line6.visible = false
line1.PosY = 100.00
line2.PosY = 150.00
line3.PosY = 200.00
line4.PosY = 250.00
else if line4.text = ""
line1.visible = true
line2.visible = true
line3.visible = true
line4.visible = false
line5.visible = false
line6.visible = false
line1.PosY = 100.00
line2.PosY = 150.00
line3.PosY = 200.00
'If every row is full, show all rows
else
line1.visible = true
line2.visible = true
line3.visible = true
line4.visible = true
line5.visible = true
line6.visible = true
line1.PosY = 100.00
line2.PosY = 150.00
line3.PosY = 200.00
line4.PosY = 250.00
line5.PosY = 300.00
line6.PosY = 350.00
end if
Let me know if that helps-
Rob
#XPression