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
 
Back
Top