T
Terra
I hope someone can help me, you see I have a form and on this form is a
button, when clicked it goes to another form that has a tabbed sub form and
is filtered to the initial form(that I click the button on) ContactID number.
This works great, however
I need it to also set the focus to the tab labeled "SalesInfo" which is page
6,
Here is my code...
Private Sub Command134_Click()
On Error GoTo Err_Command134_Click
Dim strFrmContacts As String
strFrmContacts = "frmContacts"
DoCmd.OpenForm strFrmContacts
With Forms(strFrmContacts)
..Filter = ""
..Filter = "ContactID = " & txtSrBOID
..FilterOn = True
End With
Exit_Command134_Click:
Exit Sub
Err_Command134_Click:
MsgBox Err.Description
Resume Exit_Command134_Click
End Sub
How to I add the SetFocus command and where do I put it...
Kindess regards.....TLH
button, when clicked it goes to another form that has a tabbed sub form and
is filtered to the initial form(that I click the button on) ContactID number.
This works great, however
I need it to also set the focus to the tab labeled "SalesInfo" which is page
6,
Here is my code...
Private Sub Command134_Click()
On Error GoTo Err_Command134_Click
Dim strFrmContacts As String
strFrmContacts = "frmContacts"
DoCmd.OpenForm strFrmContacts
With Forms(strFrmContacts)
..Filter = ""
..Filter = "ContactID = " & txtSrBOID
..FilterOn = True
End With
Exit_Command134_Click:
Exit Sub
Err_Command134_Click:
MsgBox Err.Description
Resume Exit_Command134_Click
End Sub
How to I add the SetFocus command and where do I put it...
Kindess regards.....TLH