Form Tabs (1 Viewer)

tjnichols

Registered User.
Local time
Today, 11:06
Joined
Apr 18, 2012
Messages
57
I have several databases that I have inserted tabs with sub forms. When I open the form, I can't see the tabs. I have to use the scroll bar to move the window to where I can see the tabs. Can someone tell me how to make the form so I can see them?

Can you also tell me how to add a control key to be able to navigate to a tab without using the mouse? This last one is an extra but I thought it would be cool.

I have attached one so you can see what I am talking about.
 

Attachments

  • Test (2).zip
    534 KB · Views: 91

Taruz

Registered User.
Local time
Today, 18:06
Joined
Apr 10, 2009
Messages
168
Hi.. ;)

Put onopen part of the form..:

Sendkeys "{pgup}"

.
 

tjnichols

Registered User.
Local time
Today, 11:06
Joined
Apr 18, 2012
Messages
57
"Put onopen part of the form..:

Sendkeys "{pgup}" "

I am sorry but this is greek to me. Where do I put this?
 

Taruz

Registered User.
Local time
Today, 18:06
Joined
Apr 10, 2009
Messages
168
Hi again.. ;)

See the image ..:

 

Attachments

  • 2012-05-20_202704.jpg
    2012-05-20_202704.jpg
    54.6 KB · Views: 201

tjnichols

Registered User.
Local time
Today, 11:06
Joined
Apr 18, 2012
Messages
57
Please excuse my ignorance. I don't know how to get the detail part (subform of Consumers) to show up in the Visual Basic editor. Can someone please help me here? I have clicked on everything that makes sense to me.

Thanks.

Tonya
 

boblarson

Smeghead
Local time
Today, 10:06
Joined
Jan 12, 2001
Messages
32,059
Bad choice to use SendKeys. You should avoid that at ALL COSTS as it is not reliable and will not work on some Windows versions.

You should be able to set focus to the top most control on the tab page when it is selected. You can use the On Change event of the main tab control to set it:

As an EXAMPLE:
Code:
Private Sub tabCtl2_Change()
    If Me.tabCtl2 = Me.tabCtl2.Pages("PageNameHere") Then
        Me.ControlNameHere.SetFocus
   End If
 
End Sub

And it should force it up.
 

Simon_MT

Registered User.
Local time
Today, 18:06
Joined
Feb 26, 2007
Messages
2,177
There is too much space used on the Main Form. To alleviate this, I'm looking at Consumers, put some of the Consumers info on a new Tab (the first) along with Notes and Attachment.

Simon
 

tjnichols

Registered User.
Local time
Today, 11:06
Joined
Apr 18, 2012
Messages
57
Simon - the information that appears on the Consumers form needs to be there.

Bob - I don't see a choice of OnChange. Can you tell me where I can find this?

Thanks!
 

Pat Hartman

Super Moderator
Staff member
Local time
Today, 13:06
Joined
Feb 19, 2002
Messages
43,331
The scrolling is seriously annoying. You need to decrese the vertical height of the forms so that they fit in the current standard "wide" screen.

There is no code that will eliminate the scrolling even if you can get the form to open with the tabs showing. Plus, the tabs will keep disappearing as you move through the subforms. Squish the vertical height. Remove all unused space and then make the forms wider or add more tabs if there just isn't enough room.
 

Users who are viewing this thread

Top Bottom