-
WSrrdavis
AskWoody LoungerHey Pat. Thanks for joining the conversation.
Yes, you are right. Clicking the Save password checkbox will overcome having to type in your password each time–ON MOST ODBC CONNECTORS. This is an AS/400 connector–and it is a little flakey. The Save password checkbox doesn’t, and creating a file-based connection (*.dsn) is highly unstable. You have to use a machine-based connection, which really sucks if your app needs to be available on multiple desktops.
I appreciate everyone’s responses. Hopefully, someone will come up with a snippet of coding that will do the trick. I tried creating a ConnectionString, complete with UID and PWD, but didn’t know how to tie it to an already linked table, OR delete the link with the table and create a ConnectionString that will connect to an existing AS/400 file.
-
WSrrdavis
AskWoody LoungerI haven’t figured it out yet. I’m sure it can be done, I’m just not sure how. I think that there is a way to save userid and password information into a DSN file.
-
WSrrdavis
AskWoody LoungerI haven’t figured it out yet. I’m sure it can be done, I’m just not sure how. I think that there is a way to save userid and password information into a DSN file.
-
WSrrdavis
AskWoody LoungerHey Catherine. Glad you could join the discussion.
Actually, the /user and /pwd switches apply only to the mdb itself. I am going against an external ODBC datasource (an AS/400).
-
WSrrdavis
AskWoody LoungerHey Catherine. Glad you could join the discussion.
Actually, the /user and /pwd switches apply only to the mdb itself. I am going against an external ODBC datasource (an AS/400).
-
WSrrdavis
AskWoody LoungerOk, I figured out that my problem was in accessing an external database referenced in my code. The reason it just hung was because it was waiting for a password. This was never a issue during development since my computer is automatically authenicated to this database. I moved the project over to a server to run it as a scheduled job overnight. The server does not automatically authenticate to this external data source (its an AS/400).
So now I need to figure out a way to code in this connection. I will submit another thread if I can’t figure it out. Thanks to everyone who submitted answers to this.
-
WSrrdavis
AskWoody LoungerOk, I figured out that my problem was in accessing an external database referenced in my code. The reason it just hung was because it was waiting for a password. This was never a issue during development since my computer is automatically authenicated to this database. I moved the project over to a server to run it as a scheduled job overnight. The server does not automatically authenticate to this external data source (its an AS/400).
So now I need to figure out a way to code in this connection. I will submit another thread if I can’t figure it out. Thanks to everyone who submitted answers to this.
-
WSrrdavis
AskWoody LoungerHi Charolotte!
Below I’ve included a screen of the macro–very simple. There are no parameters required for the function. And the function only calls a procedure in the module. It is this procedure that actually does any work.
I do have quite a lengthy declarations section for this module. Would this be the “preconditions” you refered to?
-
WSrrdavis
AskWoody LoungerHi Charolotte!
Below I’ve included a screen of the macro–very simple. There are no parameters required for the function. And the function only calls a procedure in the module. It is this procedure that actually does any work.
I do have quite a lengthy declarations section for this module. Would this be the “preconditions” you refered to?
-
WSrrdavis
AskWoody LoungerThanks for the response, Wendell.
According to the help file, a command line switch of /x macro starts and runs the specific macro. Have I misunderstood this?
My command line: “C:Program FilesMicrosoft OfficeOffice10MSACCESS.EXE” ddfile01dataddrMarketingMORPT_data.mdb /x mUpdateData
mUpdateData is actually a macro, whose only statement is to call a function.
My next step will be to add statements to my code to write to a log file in order to see where everything hangs up, and if it even gets to the function at all.
-
WSrrdavis
AskWoody LoungerThanks for the response, Wendell.
According to the help file, a command line switch of /x macro starts and runs the specific macro. Have I misunderstood this?
My command line: “C:Program FilesMicrosoft OfficeOffice10MSACCESS.EXE” ddfile01dataddrMarketingMORPT_data.mdb /x mUpdateData
mUpdateData is actually a macro, whose only statement is to call a function.
My next step will be to add statements to my code to write to a log file in order to see where everything hangs up, and if it even gets to the function at all.
-
WSrrdavis
AskWoody LoungerGreat sugguestion, Hans. Works like a charm.
-
WSrrdavis
AskWoody LoungerGreat sugguestion, Hans. Works like a charm.
-
WSrrdavis
AskWoody LoungerI love this board and the quick responses. Thanks, Hans!
-
WSrrdavis
AskWoody LoungerI love this board and the quick responses. Thanks, Hans!
![]() |
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
-
The time has come for AI-generated art
by
Catherine Barrett
1 hour, 43 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
1 hour, 43 minutes ago -
23 and you
by
Max Stul Oppenheimer
1 hour, 45 minutes ago -
April’s deluge of patches
by
Susan Bradley
1 hour, 6 minutes ago -
April’s deluge of patches
by
Susan Bradley
1 hour, 45 minutes ago -
Windows 11 Windows Updater question
by
Tex265
9 hours, 57 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
16 hours, 51 minutes ago -
Registry Patches for Windows 10
by
Drcard:))
21 hours, 22 minutes ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
3 hours, 56 minutes ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
14 hours, 45 minutes ago -
Align objects on a OneNote page
by
CWBillow
1 day, 2 hours ago -
OneNote Send To button?
by
CWBillow
1 day, 3 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
1 day, 12 hours ago -
No Newsletters since 27 January
by
rog7
1 day, 8 hours ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
12 hours, 40 minutes ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
11 hours, 19 minutes ago -
Google One Storage Questions
by
LHiggins
2 hours, 26 minutes ago -
Button Missing for Automatic Apps Updates
by
pmcjr6142
2 hours, 34 minutes ago -
Ancient SSD thinks it’s new
by
WSila
17 hours, 15 minutes ago -
Washington State lab testing provider exposed health data of 1.6 million people
by
Nibbled To Death By Ducks
2 days, 2 hours ago -
WinRE KB5057589 fake out
by
Susan Bradley
1 hour, 59 minutes ago -
The April 2025 Windows RE update might show as unsuccessful in Windows Update
by
Susan Bradley
1 day, 10 hours ago -
Firefox 137
by
Charlie
13 hours, 40 minutes ago -
Whisky, a popular Wine frontend for Mac gamers, is no more
by
Alex5723
2 days, 15 hours ago -
Windows 11 Insider Preview build 26120.3863 (24H2) released to BETA
by
joep517
2 days, 15 hours ago -
Windows 11 Insider Preview build 26200.5551 released to DEV
by
joep517
2 days, 15 hours ago -
New Windows 11 PC setup — can I start over in the middle to set up a local id?
by
ctRanger
1 day, 11 hours ago -
Windows 11 Insider Preview Build 26100.3902 (24H2) released to Release Preview
by
joep517
2 days, 19 hours ago -
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
3 days, 1 hour ago -
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
3 days, 11 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.