I
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Tabbed vs MultiPage (Access 2003)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Tabbed vs MultiPage (Access 2003)
- This topic has 25 replies, 7 voices, and was last updated 18 years, 10 months ago.
Viewing 5 reply threadsAuthorReplies-
WSHansV
AskWoody Lounger -
WSHansV
AskWoody LoungerApril 2, 2006 at 10:31 pm #1007809If, as I suspect, it is not acceptable to use Tab instead of Page Down, you can try this:
1) Set the Key Preview property of the form to Yes. This means that all keystrokes will be passed to the form’s event handlers before being passed to the active control’s event handlers.
2) Create the following event procedure for the On Key Down event of the form:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Select Case KeyCode
‘ Did the user press Page Down?
Case vbKeyPageDown
‘ Adjust the treshold value as needed
If Me.ActiveControl.Top > 10000 Then
‘ Change PageDown to Tab
KeyCode = vbKeyTab
End If
End Select
End SubYou will have to find a suitable value for the treshold (10000 in the code above) either by inspecting the value of the Top property of the last page break and converting it to twips (1 inch = 1440 twips) or by trial and error.
-
WSAGMCon
AskWoody LoungerApril 2, 2006 at 11:05 pm #1007813Hans,
It’s not every day I get to measure something with a twip. The possibilities are endless. Pun intended.
Seriously, thank you again for your near instantaneous help. Apparently sitting at my computer when we have guests for dinner is not considered to be the social thing to do. Especially if I want to wake up tomorrow morning. Which, by the way, will be the first chance I get to try this out.
Thanks again,
-
WSAGMCon
AskWoody Lounger
-
-
WSjohnhutchison
AskWoody LoungerApril 3, 2006 at 5:19 am #1007833I use Tabbed pages a lot, and avoid this problem by not using Windows themed controls , and usually using Attached labels with text boxes.
What is your objection to attached labels?
If your objection only relates to the form building process, you could build the form with unattached lables, then when you have finished attach the labels to get rid of the flicker.
To attach an unattached label: select label, Cut, select textbox, Paste. It will now be atached.
-
WSAGMCon
AskWoody Lounger -
WSjohnhutchison
AskWoody LoungerApril 3, 2006 at 11:08 am #1007878But when you just “throw on a text box”, don’t you get an attached label automatically? I always do.
Do you know that if you click any tool in the toolbox, then look at the properties box, you are looking at the properties of any new control of that type.
Amongst the many format properties of a the default text box is one “auto label”, which controls whether a label is created.I don’t like colons after labels, and for years I used to take them out, then I found out how to stop them being put there is the first place.
-
WSpatt
AskWoody Lounger -
WSjohnhutchison
AskWoody LoungerApril 3, 2006 at 9:18 pm #1007995Patt
As I said in the previous post, if you click on a tool in the toolbox, then look at the properties box, you are looking at the properties of the default comtrols of that type.
One of the properties of the default text box is :Add colon.There are lots of things in there that I used to find myself changing all the time after I created the controls, and now come out the way I want them.
I think the changes you make apply only to the current form.
added by John a but later
But you can use the form as a template for new forms created with the form wizard, and these will then inherit all the changes you make. (but i can’t remember how to do this at the moment, and haven’t got time just now to try to find out how I did it.) -
WSpatt
AskWoody Lounger
-
-
-
-
-
WSjohnhutchison
AskWoody LoungerApril 3, 2006 at 6:22 am #1007835I once had to create a long form with 6 pages. I could only fit 5 downwards before I reached the maximum form length so page 6 had to be next to page 1 but offset to the right by a bit more than a screen width.
To navigate around I had 6 command buttons. Each had a number on it to say what page it went to , and a keyboard shortcut set so that Alt & Number took you to that page.
For pages 1 to 5 the event was just Me.GoToPage 4 etc
For Page 6 it was Me.GoToPage 1, offset where offset was a constant that specified how many twips wide the screen was. The effect of this was to go back to page 1, then scroll to the right by a screen width.
-
WScsimms
AskWoody LoungerApril 3, 2006 at 2:23 pm #1007907We had a problem with having multiple tabbed pages from several queries loading slowly so we changed the entire form to use a series of command buttons that were arranged to look like tabs and when you clicked the command buttons it would just change the subform it was showing. This eliminated the problem of the form loading slowly and made a very neat single page form. Probably too much work for you to change now but I found the technique worked very well
Carla
-
WSAGMCon
AskWoody Lounger -
WScharlotte
AskWoody LoungerAugust 5, 2006 at 2:12 pm #1023403That sounds like you were loading all the subforms/queries that populated the separate tab pages when you opened the form. The usual workaround for that is to not load other pages until the tab is clicked. That significantly speeds up form loading, since it only has to populate the first tab.
-
WSAGMCon
AskWoody LoungerAugust 5, 2006 at 2:55 pm #1023405Hi Charlotte,
So you work weekends too! Thanks for the heads up on this problem. It is true that when I load this form I almost have time to go for coffee. It has 6 tabs and 12 subforms. Don’t ask, just consider it, as always, completely necessary and appropriate to the situation.
That being said, your suggestion of only loading the specific subforms when I click the related tab sounds like an excellent idea. That’s the good news. The bad news is, never having taken that approach, mainly because I didn’t know how, I would truly appreciate your showing me the light and explaining to me exactly how I would do that. In that I have a few other obscenley-tabbed forms, this would be a good thing.
Thanks again, not just for this, but all of your past suggestions,
-
WSHansV
AskWoody LoungerAugust 5, 2006 at 3:27 pm #1023406Charlotte is not online at the moment. You should do the following:
– Write down the Source Object property for each of the subforms on tab pages.
– Clear the Source Object property for all subforms on tab pages, except for the first tab page (the one on the first tab will be visible when the form is loaded, so no point in loading it later)
– Put code in the On Change event of the tab control. For example:Private Sub ctlTabs_Change()
Select Case Me.ctlTabs
Case 0 ‘ 1st tab
‘ no need to do anything
Case 1 ‘ 2nd tab
If Me.Subform2.SourceObject = “” Then
Me.Subform2.SourceObject = “Subform2”
End If
Case 2 ‘ 3rd tab
If Me.Subform3.SourceObject = “” Then
Me.Subform3.SourceObject = “Subform3”
End If
Case 3 ‘ 4th tab
…
End Select
End SubOf course, you must substitute the correct names.
-
WSAGMCon
AskWoody Lounger
-
-
-
-
-
WSMarkD
AskWoody LoungerAugust 5, 2006 at 12:34 am #1023383As usual, a day late & a dollar short, but we just upgraded from Office 2K to Office 2003 at work, and while converting one of my Access front end databases to 2003, noticed for first time the same (very annoying) “screen flicker” – at first not sure of cause, but some testing soon revealed that “unattached” (“unassociated”) labels on tabbed forms were at fault. (These labels are used on form for explanatory text, etc.) To fix, as workaround created “dummy” locked, unenabled textboxes w/transparent borders, backcolor, etc to attach the labels to, w/the dummy textboxes positioned “underneath” label. This fixed problem in most cases though in few instances still observed some residual “flicker”. I never had this problem in earlier versions of Access. Another reason not to “upgrade” to 2003 unless you are a big fan of “XML integration” and so on. Not to mention, if you have a front end w/a lot of complex objects (forms, reports) in 2003 the app will crash at the drop of a hat – just look at it funny on the screen & it will crash on you, with that stupid MS “We regret the inconvenience” dialog box. The only reason I don’t stick with more stable 2000 file format is because in ACC 2003 you cannot “compile” 2000-format front end db as an .MDE.
Could not find anything in MSKB that addresses this issue. Would like to know if MS has any intention to fix. My theory is, it has something to do with their great new “Error Checking” feature for “unassociated labels” — that’s the only thing that computes…
I will admit, the Office 2003 UI looks nicer….
Anyway was glad to locate this post so know it just wasn’t me who experienced the very annoying “flicker” phenomenon in 2003.
-
WSjohnhutchison
AskWoody LoungerAugust 5, 2006 at 4:48 am #1023388In my ‘limited’ testing of this, the screen flicker goes away when you turn off “use winodws themed controls” in Options..Forms/Reports.
The problem also goes away if you revert to “Windows Classic” themes instead of using XP. As I much prefer the classic look, this flicker is never a problem for me.
-
WSAGMCon
AskWoody Lounger -
WSjohnhutchison
AskWoody LoungerAugust 6, 2006 at 1:03 am #1023435That is interesting!
I can turn the flickering on and off with 100% reliability by switching between Classic and XP themes. And with the theme set to XP, turning on and off “use windows themed conrols” also seems pretty reliable. and I have tried this on a few computers.
The downside of specifying the source object of the subforms in the change event of the tab control is that you cannot access the subforms in Design view. When you switch to Design view, they are empty. So I tend to leave doing that until the project is substantially finished, and I only do it if speed has become an issue.
-
WSMarkD
AskWoody LoungerAugust 7, 2006 at 2:29 pm #1023534John,
Thanx for additional info — I tried suggestion to turn off the “Use Windows Themed Controls” setting but still got screen flicker if any “unassociated” labels on form. Not sure if this has any effect if not using Windows XP – at work we are still using Windows 2000 (SP4) — at home on XP systems I also use “Windows Classic” style – not a fan of default XP theme. Also not sure if this setting is per-user on a given machine, or per-database – the Access 2003 “Help” system is NOT an improvement over its undistinguished predecessors.
To avoid the “screen flicker” issue in future plan to simply use locked, unbound textboxes in place of “unassociated” labels.
-
-
-
-
Viewing 5 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Office gets current release
by
Susan Bradley
8 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
15 hours, 19 minutes ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
3 hours, 19 minutes ago -
Stop the OneDrive defaults
by
CWBillow
16 hours, 8 minutes ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
1 day, 2 hours ago -
X Suspends Encrypted DMs
by
Alex5723
1 day, 4 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
1 day, 4 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
1 day, 5 hours ago -
OpenAI model sabotages shutdown code
by
Cybertooth
1 day, 5 hours ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
17 hours, 57 minutes ago -
Enabling Secureboot
by
ITguy
1 day ago -
Windows hosting exposes additional bugs
by
Susan Bradley
1 day, 13 hours ago -
No more rounded corners??
by
CWBillow
1 day, 9 hours ago -
Android 15 and IPV6
by
Win7and10
23 hours, 15 minutes ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
2 days, 2 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
2 days, 4 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
1 day, 23 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
2 days, 12 hours ago -
May preview updates
by
Susan Bradley
1 day, 23 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
1 day, 15 hours ago -
Just got this pop-up page while browsing
by
Alex5723
2 days, 4 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
2 days, 1 hour ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
1 day, 3 hours ago -
At last – installation of 24H2
by
Botswana12
3 days, 3 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
1 hour, 19 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
3 days, 15 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
1 day, 14 hours ago -
Limited account permission error related to Windows Update
by
gtd12345
4 days, 5 hours ago -
Another test post
by
gtd12345
4 days, 5 hours ago -
Connect to someone else computer
by
wadeer
6 hours, 39 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.