Open to specific page tab in form with multiple tabs

  • Thread starter Thread starter Jason M Canady
  • Start date Start date
J

Jason M Canady

Is it possiple to open a tab control to a specific page tab? I am using
page tabs for a simple help menu which I call from mulitple windows and
would like to be able to specify which tab to display first - like a
bookmark.

Any assistance would be appreciated.

Jason
 
Hi Jason

You could pass the page number to the form via OpenArgs:
DoCmd.OpenForm "name of form", OpenArgs:=iPageNum

Then, in the form's Load event:
If IsNumeric(Me.OpenArgs) Then
Me.[name of tab control] = Me.OpenArgs
End If
 
Excellent Graham!!

That worked like a charm. I knew it must be possible, but not knowing a lot
of programming wasn't sure how to go about it.

Thanks again!!
Jason

Graham Mandeno said:
Hi Jason

You could pass the page number to the form via OpenArgs:
DoCmd.OpenForm "name of form", OpenArgs:=iPageNum

Then, in the form's Load event:
If IsNumeric(Me.OpenArgs) Then
Me.[name of tab control] = Me.OpenArgs
End If

--
Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

Jason M Canady said:
Is it possiple to open a tab control to a specific page tab? I am using
page tabs for a simple help menu which I call from mulitple windows and
would like to be able to specify which tab to display first - like a
bookmark.

Any assistance would be appreciated.

Jason
 
Back
Top