Label not to show on Report

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

I want the label on a report (Label87) not to show if the text box
(text107) has not data in it!
Thanks for any help.........................Bob
 
Use the section's format event. This tests text107 for length (number of
characters). If it is null or empty, the label will be invisible.
Label87.Visible = len(text107 * vbNullString)>0
 
Bill it just freezes my db when I go to print preview, does this look right?
Regards Bob
Private Sub PageFooterSection_Format(Cancel As Integer, FormatCount As
Integer)
Label87.Visible = len(text107 * vbNullString)>0
End Sub
 
Try:

Label87.Visible = Len([text107] & vbNullString)>0

I think that's what Bill meant ... The keys & and * are right next to each
other on the keyboard ...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top