-
WSherworth
AskWoody LoungerMark
Thanks for your efforts. I realise the error of my ways now (see my response to Charlotte)
Peter -
WSherworth
AskWoody LoungerThanks Charlotte
It’s not the end of the world I can work around it.
Of course, what you say now makes perfect sense to me. I wonder why I didn’t see that in the first place? (You don’t need to answer that!!)
Peter -
WSherworth
AskWoody LoungerMark
When I click the button on the menu form I want it to open the mainform by referencing a field in the mainform’s subform. Does that make sense?
Peter -
WSherworth
AskWoody LoungerSorry folks – I should have explained better. Let me try again.
Db opens to a form which is a menu of choices with command buttons. I choose a set of books by clicking a button and opening what I originally called the mainform, filtered to the appropriate list (F, P or O). So if I press “F” I get the main form with all the authors [Author] for “F” and the subform of all the book entries for those authors (to add, amend or print).
So the code behind the button reads something like:
DoCmd.OpenForm “MainForm”, wherecondition:=”[Choice]=’F'”
At the moment [Choice] (F, P or O) is on the main form but I would like it to be in the sub form ( for good reasons which needn’t go in to). So the code could then read something like:
DoCmd,OpenForm “MainForm”, wherecondition:=”subform.form![choice]=’F'” but that doesn’t work.
I hope that’s clearer. Anyone help??
Peter -
WSherworth
AskWoody LoungerCharlotte
Thanks for your response. CCur() worked ( see Mark L’s rsponse)
Peter -
WSherworth
AskWoody LoungerMark
Thanks a lot. That did the trick.
Peter -
WSherworth
AskWoody LoungerIf you know how long the delay needs to be you can use this function:
Function Pause(ByVal nSecond As Single)
Dim t0 As Single
t0 = Timer
Do While Timer – t0 < nSecond
Dim dummy As Integer
dummy = DoEvents()
If Timer < t0 Then t0 = t0 – 24 * 60 * 60 ' if we cross midnight, back up one day
Loop
End Function
You pause the whole operation by 10 seconds for example by using Pause(10) at the appropriate point in the code.
Peter -
WSherworth
AskWoody LoungerMay 17, 2002 at 12:58 pm in reply to: Automatic detection of printer properties (97, 2000, XP) #588623If I understand you correctly, you have the printer set up as separate printers depending on whether you want upper paper tray or lower ( or whatever). If that is so a simple macro set up as a button on the command bar will do what you want. Something like this ( quickly thought thro and may be able to be refined):
Sub specialprint()
ActiveDocument.PrintOut Background:=False, Range:=wdPrintFromTo, from:=”1″, to:=”1″
ActivePrinter = “myBlankPaperPrinter”
ActiveDocument.PrintOut Background:=False, Range:=wdPrintFromTo, from:=”2″, to:=”100″
ActivePrinter = “myDefaultPrinter”End Sub
Hope it works for you.
Peter -
WSherworth
AskWoody Lounger -
WSherworth
AskWoody LoungerFrancois
A final thanks.
It works great and I’ve even tweaked small parts of it. Nothing major of course in accordance with author’s instuctions
Peter -
WSherworth
AskWoody Lounger -
WSherworth
AskWoody LoungerThanks again Francois. I’m going to try it. The reason I’m doubtful is just that I don’t like to use code that I don’t fully understand. If I need to adapt it I can’t if I can’t work out what each step does.
Peter -
WSherworth
AskWoody LoungerFrancois
Thanks for that. I’ve copied the code you pointed me to but it looks pretty complicated so I may stick to my inputbox until I understand it better.
It’s a good site for help and ideas. Thanks again
Peter -
WSherworth
AskWoody LoungerIn any one file, you can set the defaults for that file as a whole, so that, for example, every time you open a new text box in it, it defaults to your text. Check the Help file. However you can’t change defaults overall which is a pain I agree. Older versions used to have a Normal.Pub I don’t know why they scrapped it
-
WSherworth
AskWoody LoungerGive the file back and ask them to save it as a P98 from P2K. Then when they give it back you can do as you wish with it. If there’s nothing persona; in it any other friend with P2K can do it for you, just don’t pass them any viruses.
Peter
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

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
-
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
1 hour, 23 minutes ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
1 hour, 24 minutes ago -
Drivers suggested via Windows Update
by
Tex265
1 hour, 15 minutes ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
5 hours, 5 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
8 hours, 15 minutes ago -
Apple releases 18.5
by
Susan Bradley
2 hours, 40 minutes ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
9 hours, 41 minutes ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
10 hours, 19 minutes ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
17 hours, 15 minutes ago -
No HP software folders
by
fpefpe
18 hours ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
1 hour, 57 minutes ago -
Stay connected anywhere
by
Peter Deegan
23 hours, 22 minutes ago -
Copilot, under the table
by
Will Fastie
14 hours, 36 minutes ago -
The Windows experience
by
Will Fastie
1 day, 5 hours ago -
A tale of two operating systems
by
Susan Bradley
20 hours, 33 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
1 day, 10 hours ago -
Where’s the cache today?
by
Up2you2
2 days, 2 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
1 day, 19 hours ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
19 hours, 22 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 hour, 40 minutes ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days, 19 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days, 19 hours ago -
regarding april update and may update
by
heybengbeng
2 days, 21 hours ago -
MS Passkey
by
pmruzicka
1 day, 23 hours ago -
Can’t make Opera my default browser
by
bmeacham
3 days, 4 hours ago -
*Some settings are managed by your organization
by
rlowe44
2 days, 15 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
3 days, 3 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 23 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
4 days, 8 hours ago -
AI slop
by
Susan Bradley
2 days, 2 hours 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.