how to access a value of a control which is in a tab control

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

Guest

i dont understand why i have this problem:
i have a tab control, it has 2 pages.

how can i access the value of a textbox (programmatically) which is inside a
tab control so i can do stuff depending on its value?

i must say it's formatted to input dates.
i have tried:

If Me!TabCtl0.Pages(0)!txtDate.value <> "" Then
MsgBox "Hola"
End If

but doesnt work.
 
The control is part of the form's controls collection, so you do not need
the reference to the tab page. Also, Value is the default property so it is
unnecessary.

Try this:
If Me!txtDate <> "" Then
 

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