-
WSPaulK
AskWoody LoungerI’m assuming you are referring to the handlebuttonclick function in the switchboard forms module. This is a custom function that carries out instructions based upon the button on the form that was clicked. If you look at the click event in the button’s properties sheet you will see that each button calls this custom function passing to it the number – or position on the form – of the button that was clicked. The custom function then uses this number to determine what instructions to carry out – open a form, report etc. It does this by opening the switchboard items table, and finding the record that matches the page number (switchboardid) and button number (itemnumber) of the switchboard form. It then uses the value in the command field and a select case statement to match the value to the constants defined at the beginning of the function.
But don’t worry. You don’t really need to know how this all works because there is a switchboard wizard that configures all of this for you. In XP go to the Tools menu/Database utilites and select the switchboard manager. From there you can configure which buttons you want to open which forms, reports etc.
-
WSPaulK
AskWoody LoungerIf mailto: is always at the beginning of the field you can use the mid function in an expression in a calculated field in a query to isolate the name. Then just concatenate a comma. Something like
Mail To: Mid([hlinkfield],8) & “,”
Make it 9 if there is a space between mailto: and the name.
-
WSPaulK
AskWoody LoungerIf you want this function to be used in more than one situation you will need to pass values to the function when calling it. This means you will need to have one or more arguments in the function whose values you can test and then perform appropriate actions. For example instead of this:
Public Function MyFilter()
If IsNull(Forms![FBenchmark]!Office) Then
DoCmd.Beep
MsgBox ” Please select Office first ! ”
Exit Function
End If
End FunctionIt would look something like this:
Public Function MyFilter(intOption as Integer)
If IsNull(intOption) Then
DoCmd.Beep
MsgBox ” Please select Office first ! ”
Exit Function
End If
End FunctionNot sure what all you are trying to accomplish – more details might be helpful.
-
WSPaulK
AskWoody LoungerJust to add my 2 cents to the 6 cents that has already been offered, most likely the data type mismatch error occurred in the code behind the button in the where condition argument of the OpenReport method. The where condition argument is a string and can get tricky when using numeric criteria. Also, a long integer type might be more appropriate rather than a double if your id’s will be whole numbers only. Long Integers take up half the room of doubles and should be more efficiently sorted and indexed, though that last bit is pure supposition on my part.
-
WSPaulK
AskWoody LoungerGo to tools/options/keyboard tab. You can set the enter field behavior to go to end of field. This is a global setting so I’m not sure if this suits your needs. The only other thing I can think of is to use a Sendkeys statement to pas an to the control. I tend to shy away from Sendkeys if I can. Pass a to go to the next line.
-
WSPaulK
AskWoody LoungerI believe you need to employ the orderby and orderbyon properties of the report to affect the sort order of a report.
-
WSPaulK
AskWoody LoungerJanuary 24, 2003 at 3:26 pm in reply to: SendObject won’t finish the send (AccessXPSP2/Lotus Notes R5) #647538Thanks Allan!
I’ve got something similar to the first example. The problem I’m having now is setting who the emails come from. We’ve created a specific mailbox for this operation and I’m now trying to figure out the syntax for setting the sender’s mailbox. Thanks again for sharing!
-
WSPaulK
AskWoody LoungerI don’t know if that would help. What makes you think it is the listboxes that are slowing down the opening of the form? Do you have a lot of code in the form’s module? I’ve read that heavy forms can be slow to open. Have you tried removing the listboxes temporarily to see if there’s a difference? If your form is code heavy you can create custom functions in standard modules and call them from the form passing whatever values you need to.
-
WSPaulK
AskWoody LoungerJanuary 21, 2003 at 2:20 pm in reply to: SendObject won’t finish the send (AccessXPSP2/Lotus Notes R5) #646792No, I get no error message. The memo is created with the addressee, subject line and the report in HTML format nicely pasted into the body of the memo. But then it just sits there and isn’t sent automatically which is what I thought setting the EditMessage argument to False was supposed to do.
Notes R5 is supposed to be MAPI compliant but there are still issues with MS apps. I will look into the dll you mention and see if that makes a difference. Thanks for the suggestion, Charlotte.
-
WSPaulK
AskWoody LoungerJanuary 17, 2003 at 8:22 pm in reply to: Form/Subform Control Manipulation (2000 SR-1, Win 2000 Prof) #646046It looks to me that you referenced the subform control with “Me.MondayActivities_subform.SetFocus”. You want to set the value of a control on the subform you need to replace setfocus with either Form!ControlName or just ControlName. The value property is the default property so you do not need to specify it. Try using the expression builder – it’s perfect for this sort of thing.
-
WSPaulK
AskWoody LoungerIf you are using a sub procedure rather than a function I believe you need to use the CALL keyword as in Call subprocedurename. Alternatively you can change it to a function procedure and type ? functionname.
-
WSPaulK
AskWoody LoungerSorry if I wasn’t clear I meant the before_update of the control rather than the after_update. This way you can set the Cancel argument to True if the ID already exists which will cancel the update and even issue a docmd.undo if you want to remove what the user entered.
-
WSPaulK
AskWoody LoungerTry using the before_update event instead of after_update event. You want to cancel the update if the id is already in use.
-
WSPaulK
AskWoody LoungerI’ve noticed this behavior most commonly with linked data sources. And, so far, have not been able to find a way around it.
-
WSPaulK
AskWoody LoungerI don’t recall experiencing that. Try opening a new query and adding the 3 tables to it. Does the line show up in the design grid? I’ll take a look and see if I can duplicate it. I don’t have A2k just 97 and xp, though.
![]() |
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 |

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
-
Test post
by
Susan Bradley
2 hours, 17 minutes ago -
Used Systems to delete Temp files Gone WRONG what does this mean?
by
Deo
1 hour, 21 minutes ago -
SSD shuts down on its own
by
CWBillow
3 hours, 43 minutes ago -
OneDrive File Sharing Changes
by
David Clark
6 hours, 9 minutes ago -
OneDrive File Sharing Changes
by
David Clark
8 hours, 13 minutes ago -
Win 10 Pro 22H2 to Win 11 Pro 23H2 Conversion Guide
by
doneager
3 hours ago -
Today is world backup day
by
Alex5723
11 hours, 26 minutes ago -
Windows .exe on Mint
by
Slowpoke47
9 hours, 46 minutes ago -
Reviewing your licensing options
by
Susan Bradley
1 hour, 17 minutes ago -
Apple has been analyzing your photos since September 2024
by
B. Livingston
4 hours, 49 minutes ago -
What Windows 11 24H2 offers beyond bugs
by
Lance Whitney
6 minutes ago -
Making sense of Settings in Windows 11
by
Simon Bisson
2 hours, 11 minutes ago -
Windows 11 pro fails to log in after upgrading Win 10 pro to Win 11 pro 24h2
by
ben_sitaud
6 hours, 3 minutes ago -
23H2 / 24H2 / Local v. Microsoft Account.
by
CWBillow
3 hours, 49 minutes ago -
YouTube Ad Blocker Blocker
by
bbearren
4 hours ago -
Obscure historical facts about Windows
by
Cybertooth
5 hours, 38 minutes ago -
Microsoft Backup
by
Linda2019
21 hours, 16 minutes ago -
What is the best notepad++ version for W7?
by
Picky
4 hours, 52 minutes ago -
What are right steps to move MS 365 Office+OneDrive files from PC to iMac?
by
glnz
1 day, 14 hours ago -
How to move existing MS 365 Office with OneDrive files from PC to new iMac
by
glnz
1 day, 14 hours ago -
How to move MS 365 files (some on OneDrive) from PC to iMac
by
glnz
2 days, 9 hours ago -
Microsoft adding Quick Machine Recovery to Windows 11
by
Alex5723
2 days, 9 hours ago -
Microsoft vs Passwords
by
Alex5723
1 day, 17 hours ago -
Windows 11 Insider Preview build 26200.5516 released to DEV
by
joep517
2 days, 13 hours ago -
Windows 11 Insider Preview build 26120.3653 (24H2) released to BETA
by
joep517
2 days, 13 hours ago -
Two March KB5053606 updates?
by
Adam
2 days, 6 hours ago -
MS Edge Not Updating to v134.0.3124.95 (rel. 27-Mar-2025)
by
lmacri
2 days, 7 hours ago -
Intel® Graphics/Sound Driver updates for 7th-10th Gen Intel® Core™ Processor
by
Alex5723
2 days, 10 hours ago -
Is there a comprehensve way to tranfer ALL current Edge Settings into a new Edge
by
Tex265
2 days, 8 hours ago -
Transferring ALL info/settings from current Firefox to new computer Firefox
by
Tex265
2 days, 8 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.