subForm Visible problem

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

Bob Vance

lblFoaling works fine but I cant get tbDate to work as it is in the sub
form of my form!
Me.[lblFoaling].Visible = Not IsNull([tbBirthDate])
Me.[lblMemo].Visible = Not IsNull([subformAlerts.tbDate])
 
Thanks Ken, nearly got it right :) Regards Bob

KenSheridan via AccessMonster.com said:
Bob:

Your bracketing is wrong:

Me.[lblMemo].Visible = Not IsNull([subformAlerts].[tbDate])

Although not absolutely necessary I'd usually include the Form property
when
referencing a control via a parent form's subform control:

Me.[lblMemo].Visible = Not IsNull([subformAlerts].Form.[tbDate])

Ken Sheridan
Stafford, England

Bob said:
lblFoaling works fine but I cant get tbDate to work as it is in the sub
form of my form!
Me.[lblFoaling].Visible = Not IsNull([tbBirthDate])
Me.[lblMemo].Visible = Not IsNull([subformAlerts.tbDate])
 

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

Similar Threads

Visible Question 2
if statement not working 3
MoveSize Problem 1
visible if 2
ByPass key ms access 2016 0
Access Form Validation 2
Change Calender Start date 1
Calendar control part 2 7

Back
Top