Don't show text box

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello!

In MainForm I have a combo box.
Through of the code OnOpen MainForm < Me![SubF_NameForQuadr].Visible =
False>, show us that a subform, only after click in combo.
When the SubForm open, appear right away the empty text boxes.

I would like to show the text box only if it will have data in records
clicked in combo.
If don't have data in records selected in combo, the text boxes don't appear.
How is possible to do this, please?

I tried

If [MyField] Is Empty Then
[MyField].Visible = False
Else
....
....

But don't work.

Thanks in advance.
an
 
One approach:
[MyField].Visible = Len(nz([MyField],""))
(if the field has 1 or more characters it will be visible)
 
George Nicholson

for 2nd time, today...

Problem solved.
Thank you very much.

an

George Nicholson said:
One approach:
[MyField].Visible = Len(nz([MyField],""))
(if the field has 1 or more characters it will be visible)

--
George Nicholson

Remove 'Junk' from return address.


an said:
Hello!

In MainForm I have a combo box.
Through of the code OnOpen MainForm < Me![SubF_NameForQuadr].Visible =
False>, show us that a subform, only after click in combo.
When the SubForm open, appear right away the empty text boxes.

I would like to show the text box only if it will have data in records
clicked in combo.
If don't have data in records selected in combo, the text boxes don't
appear.
How is possible to do this, please?

I tried

If [MyField] Is Empty Then
[MyField].Visible = False
Else
...
...

But don't work.

Thanks in advance.
an
 

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