-
WSkriss669
AskWoody LoungerI downloaded the sample Excel workbook on the link you recommended and tried it out. The code only works if I use Excel’s “Window” menu item and select a different Excel file from the list. Whenever I open a workbook by double-clicking its icon in Explorer, or if I just click somewhere else on my screen outside the Excel window, the deactivate event does not fire (nothing happens).
That’s why I thought the best approach would be to trap user click events using the API, but I would still need some sort of timer control to put onto my Excel workbook in order to run the code.
Any other ideas?
-
WSkriss669
AskWoody LoungerThank you for your input. I’ve tried the approach you recommend, but other Excel files still open with my toolbar. Could this be because my code is in a custom template instead of just a workbook? Would my template become attached to any other Excel files opening when a workbook created with it is running? If so, how would I prevent this? Just to complicate things, the “book.xlt” template is not contained in my Microsoft Templates folder.
I’m mostly an Access programmer, so perhaps I need to understand better how Excel application development works.
Thanks again.
-
WSkriss669
AskWoody LoungerThank you, Hans, but this approach doesn’t work, because the source workbook gets deactivated when the target workbook is being formatted, which does require the custom toolbar. In addition, when I was playing with it, I found that code to make the toolbar not visible or not enabled on the workbook or window deactivate event did not prevent having my custom toolbar display when a user opened a different Excel workbook by double-clicking its icon in Explorer.
Any other ideas?
-
WSkriss669
AskWoody LoungerYes, it only tracks the import and update stuff. It then sends me an email with an attached report based on the log table before shutting down on completion. (I have set compact on close to true). The log table is cleared before the next run.
You’re probably right about using XML instead of a table, but I haven’t mastered that.
I haven’t used library databases before; thanks for the suggestion, I’ll look into it. Any heads up info I should know about them?
Also, your comment that Access is “not really DotNet compliant” raises a flag, because one of our production databases is in Access, and the vendor is planning to convert it to DotNet. Where can I find more information about any potential issues?
Thank you so much for your time. I appreciate your help!
-
WSkriss669
AskWoody LoungerPerhaps you could explain in a little more detail.
I would never allow a user to run my backend import and update code, since I need to supervise it., although I do have user security implemented. I also have a log table in the backend to which each function writes a line on completion or, if an error occurs, writes the function name, error number and description.
I’m thinking of leaving it as a front-end back end split design, but was wondering about the possibility of moving my import and update backend code into commponents.
-
WSkriss669
AskWoody LoungerBecause the be modules import data into the backend from other production databases and then integrate it with other .mdb tables. I don’t want multiple users’ front-end apps running the backend import code!
Don’t worry, I know how to set up the users.
Can you tell me what the reasons are that “Access is not suitable for 3-tier design”?
Thanks!
-
WSkriss669
AskWoody LoungerOkay, I think we have solved it by installing SP1 for Office 2003. I have tested it on one PC so far, and no problems.
Thanks to all of you for your help.
-
WSkriss669
AskWoody LoungerOkay, I think we have solved it by installing SP1 for Office 2003. I have tested it on one PC so far, and no problems.
Thanks to all of you for your help.
-
WSkriss669
AskWoody Lounger(Edited by HansV to provide link to MSKB article – see Help 19)
I’m suspicious, because I found a Microsoft Knowledge Base Article 836030 that says, tantalyzingly, that the following bug in Access 2002 was fixed in SP3:
“The OpenArgs function only works one time in a VBA project
If your MS VBA code for a form makes a call to the OpenArgs function after you open the form in design mode, yhou may receive the following VBA error message:
Run-time error: 94
Invalid use of NullNo hyperlink to any more info, and my app is a regular .mdb, not a .mda, plus the problem is in a report, not a form, nor does an error message display.
Still, this is Microsoft . . .
Any suggestions as to how to find out more? -
WSkriss669
AskWoody Lounger(Edited by HansV to provide link to MSKB article – see Help 19)
I’m suspicious, because I found a Microsoft Knowledge Base Article 836030 that says, tantalyzingly, that the following bug in Access 2002 was fixed in SP3:
“The OpenArgs function only works one time in a VBA project
If your MS VBA code for a form makes a call to the OpenArgs function after you open the form in design mode, yhou may receive the following VBA error message:
Run-time error: 94
Invalid use of NullNo hyperlink to any more info, and my app is a regular .mdb, not a .mda, plus the problem is in a report, not a form, nor does an error message display.
Still, this is Microsoft . . .
Any suggestions as to how to find out more? -
WSkriss669
AskWoody LoungerJust for fun, I made a copy of the report that is reading the openargs string, called it by a different name, and tried opening it with the same docmd method.
Identical report, identical code module, just a different report name.
Got ISNULL for openargs.Is this an Access 2003 bug?
-
WSkriss669
AskWoody LoungerJust for fun, I made a copy of the report that is reading the openargs string, called it by a different name, and tried opening it with the same docmd method.
Identical report, identical code module, just a different report name.
Got ISNULL for openargs.Is this an Access 2003 bug?
-
WSkriss669
AskWoody LoungerYes to both your questions.
The variable name was originally used to pass a querydef, but I found a more effective way to do that. Just never changed the variable name.
-
WSkriss669
AskWoody LoungerYes to both your questions.
The variable name was originally used to pass a querydef, but I found a more effective way to do that. Just never changed the variable name.
-
WSkriss669
AskWoody LoungerOkay, thanks!
![]() |
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
-
Can’t make Opera my default browser
by
bmeacham
1 hour, 30 minutes ago -
Do not Fall For This Purdentix Scam (Awaiting moderation)
by
elizabethkaur56
7 hours, 28 minutes ago -
*Some settings are managed by your organization
by
rlowe44
17 hours, 27 minutes ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
24 minutes ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
20 hours, 6 minutes ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
1 day, 5 hours ago -
AI slop
by
Susan Bradley
1 day, 4 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
1 day, 6 hours ago -
Two blank icons
by
CR2
15 hours, 56 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day, 15 hours ago -
End of 10
by
Alex5723
1 day, 17 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
15 hours, 52 minutes ago -
test post
by
gtd12345
1 day, 23 hours ago -
Privacy and the Real ID
by
Susan Bradley
1 day, 14 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 6 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
2 days, 4 hours ago -
Upgrading from Win 10
by
WSjcgc50
16 hours, 1 minute ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
19 hours, 35 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
2 days, 19 hours ago -
The story of Windows Longhorn
by
Cybertooth
2 days, 7 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days, 21 hours ago -
Are manuals extinct?
by
Susan Bradley
7 hours, 33 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
3 days, 7 hours ago -
Network Issue
by
Casey H
2 days, 18 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
3 days, 19 hours ago -
May 2025 Office non-Security updates
by
PKCano
3 days, 19 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
3 days, 21 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days, 22 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 23 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 23 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.