Hide a text Box!

B

Bob

Is it possible if text box: [tbone] has not data in it that [tbtwo] will be
hidden.... Any help Thanks bob







..........Jenny Vance
 
A

Allen Browne

Set the Control Source of the 2nd one to an expression like this:
=IIf([tbOne] Is Null, Null, [tbTwo])

Make sure you change the Name property of the text box as well. Access gets
confused if a control has the same name as a field, but is bound to
something different.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.


Bob said:
Oops Sorry on a Report...Thanks bob

Bob said:
Is it possible if text box: [tbone] has not data in it that [tbtwo] will
be hidden.... Any help Thanks bob
 
B

Bob

Thanks Allen, But Null didn't work but this did:
=IIf([tbGSTOptionsValue] = 0, Null, [GSTNoLable])

Thanks Bob



Allen Browne said:
Set the Control Source of the 2nd one to an expression like this:
=IIf([tbOne] Is Null, Null, [tbTwo])

Make sure you change the Name property of the text box as well. Access
gets confused if a control has the same name as a field, but is bound to
something different.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.


Bob said:
Oops Sorry on a Report...Thanks bob

Bob said:
Is it possible if text box: [tbone] has not data in it that [tbtwo] will
be hidden.... Any help Thanks bob
 

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

Top