Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hiding and Showing Textbox

Status
Not open for further replies.

Marryp

Technical User
May 28, 2001
129
CA
How can I hide a textbox with no value without leaving a space for the next line ie

Record1
Tel: 9999999
Fax: 888888
Email: hello@yahoo.com
Website:
Record2
Tel: 22222222
Website:
Record3
Tel: 3333333
 
Either set the textbox edges to match up (very carefully) and set Can Shrink to Yes, or use one text box and some code to concatenate lines.
 
Concatenate will not work because I used bold formatting on the label. How do I match up the textbox. It will still leave a space.
 
i'll get back to u tomorrow with some ideas. time for dinner!
steve
 
Try using conditional statement
Code:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.Email = "" Then Cancel= True 
End Sub


________________________________________________________
Zameer Abdulla
Help to find Missing people
Do not cut down the tree that gives you shade.
 
You could try changing the labels to Textboxes and setting each control source:
=IIf(Trim() & ""<>"","Email","")
etc. Then set the Can Shrink property for all the textboxes (including the new textbox labels) and the Report Detail to Yes. Finally, line up the textboxes carefully, so that the bottom of each box coincides with the top on the box beneath, otherwise, when the label shrinks, you are left with too much space.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top