T
Todd K.
I have subforms that I am trying to tab through from my main form. I have
set up the "txtjump" field in all subforms to set the focus on the next
subform. My problem is, if the main form is FrmProjEntry_Renaissance I need
it to jump to subform FrmSUBContacts_Cities. Otherwise I need it to jump to
subform FrmSUBContacts_Project. I have entered the code below but I keep
getting errors on the If line, is there something subtle I'm missing?
Private Sub TxtJump_Enter()
If Me.Parent = "FrmProjEntry_Renaissance"
Then Me.Parent.FrmSUBContacts_Cities.SetFocus
Else Me.Parent.FrmSUBContacts_Project.SetFocus
End Sub
set up the "txtjump" field in all subforms to set the focus on the next
subform. My problem is, if the main form is FrmProjEntry_Renaissance I need
it to jump to subform FrmSUBContacts_Cities. Otherwise I need it to jump to
subform FrmSUBContacts_Project. I have entered the code below but I keep
getting errors on the If line, is there something subtle I'm missing?
Private Sub TxtJump_Enter()
If Me.Parent = "FrmProjEntry_Renaissance"
Then Me.Parent.FrmSUBContacts_Cities.SetFocus
Else Me.Parent.FrmSUBContacts_Project.SetFocus
End Sub