ca1358
asked on
TabControl Syntax
This is Access VBA 2003
What would be the correct syntax of this statement?
1. Main Form is frmMaintenance
2. TabControl name-- TabControl
3. Page name[ Roll_YieldException]
4. field [text1]
If IsNull(Forms!frmMaintenanc e.TabContr ol.Pages.[ Roll_Yield Exception] .[text1]) Then
Any help would greatly be appreciated!
What would be the correct syntax of this statement?
1. Main Form is frmMaintenance
2. TabControl name-- TabControl
3. Page name[ Roll_YieldException]
4. field [text1]
If IsNull(Forms!frmMaintenanc
Any help would greatly be appreciated!
ASKER
It didnt work - it gave me runtime error 2465 Maintenance cant find the field "text1" referred to in your expression.
Any other suggestions would be appreciated.
Thank you.
Any other suggestions would be appreciated.
Thank you.
ASKER
I still need a answer to my question.
I have appended a database in 2000 format with a form containing a textbox on a page of a Tab control. The command button on the form adds some text to the text box. The code is shown in the snippet.
Private Sub Command5_Click()
Text1.SetFocus
Text1.Text = "Hello"
End Sub
db1.mdb
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you.
strText = Forms!frmMaintenance!text1