Open to specific page tab in form with multiple tabs

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
 
G

Graham Mandeno

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
 
J

Jason M Canady

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top