-
WSKlaus
AskWoody LoungerTed, re. “I think you have to back up each PC on it’s own.” – I agree, that’s probably the case. That’s one improvement I’d like to see in SP1
You could provide the homegroup password to be stored with the job.
mercyh, re. “…does it open and work?” – yes, I can browse to the other library. I can also right-click on the other library to add it when creating a zip file. Just not when creating a backup job. Maybe’ll I open a ticket with Winzip.I wonder why Network Magic can do this, but Win7 cannot…
Thanks to both of you for replying!
Klaus -
WSKlaus
AskWoody LoungerI found a solution on microsoft.public.sqlserver.odbc: create a simple query in design view w/o specifying any tables. Right-click in the blank, grey “tables” area to display the query properties. Add the DSN connection string including the password to the Source Connect String, e.g.
ODBC;DSN=MyDSN;Description=MyDSN;UID=MyUser;PWD=MyPWD;DATABASE=MyDB;AutoTranslate=No;TABLE=tblAnyTableNow just drag a field from tblAnyTable with a criteria that returns no records (e.g., User ID of -1). The SQL View would look something like this:
SELECT tblAnyTable.EmpNo AS Expr1
FROM MyDB IN ” [ODBC;DSN=MyDSN;Description=MyDSN;UID=MyUser;PWD=MyPWD;DATABASE=MyDB;AutoTranslate=No;TABLE=tblAnyTable]
WHERE (((tblAnyTable.EmpNo)=-1));
Make sure the query returns no records. All youwant is to get connected to the database w/o a password prompt. I even hid the query, so the users won’t see it. Save it as qryDSN or whatever.For the code, I use
Dim db As Database
Dim rs As Recordset
Dim qdfParmQry As QueryDefSet db = CurrentDb()
Set qdfParmQry = db.QueryDefs(“qryDSN”)
Set rs = qdfParmQry.OpenRecordset()
‘no records are returned to the recordset
DoCmd.OutputTo acOutputReport, “rptMyReport”, acFormatSNP, “MyReport.snp”, Falseafter which I close the aplication.
Now I can launch the database at night to run unattended reports w/o a password prompt. This is in essence the same thing I did initially, but this one works on the user’s workstations as well.
-
WSKlaus
AskWoody LoungerFrancois,
since the application was already installed and running on other PC’s (w/o the report automation), I first had to recreate the user dsn on my machine before writing the code. I used the same login verification as on the other PC’s. I compared each screen to be 100% sure. The password is not stored.
When the users run the reports interactively (as before), they are prompted for the SQL password (as before). So that part works unchanged, as it should.
But when they attempt to run the reports automatically, that’s when they have the problem: they are still prompted for the password, whereas on my machine, running the code eliminates the login prompt.
Thanks for your help, I’m still w/o a clue
.
-
WSKlaus
AskWoody LoungerThanks all for helping.
I think I will go a route I initially rejected, which is a form with two date fields. The dates will still be populated automatically, but can be changed for manual operation.
I will modify the query to get the dates from the form. This should work in both manual operation, as well as in automated mode when I launch the app in the wee hours
.
Let’s hope the customer goes for it
.
Klaus
-
WSKlaus
AskWoody LoungerCharlotte,
thanks for replying.When I run the report programmatically, I intend to output the report to a snapshot file using the following code (unless there is a better way):
DoCmd.OutputTo acOutputReport, “rptMyReport”, acFormatSNP, “MyReport.snp”, False
The report’s RecordSource is query “qryMyQuery“, and the query has the “Between [Enter Begin date:] And [Enter End date:]” parameter on a date field.
Could you please give me an example on how to rewrite the above DoCmd, so it feeds the two dates to the “between” parameters, assuming I use my datBDate() function and the Date() function for the two dates?
I really appreciate your help in this.
Klaus
-
WSKlaus
AskWoody LoungerHey zeddy,
that Matrix-bit was pretty good.
U never know when that comes in handy, I’ll keep that one around for future reference…Thanks,
Klaus -
WSKlaus
AskWoody LoungerHah! I love it – very sweet indeed
Thank you very much,
Klaus
-
WSKlaus
AskWoody LoungerOh, I get it now
.
Re.: “but I do hate that there are two sets of menus & toolbars when you ‘arrange documents’ ” – that’s exactly the annoying behaviour that Romke Soldaat’s clever code fixes (among other things).
Klaus
-
WSKlaus
AskWoody LoungerPhil,
if I understand you correctly, that’s actually what Klaus’ code does. The Chr(9) tabs a table cell entry when I press Ctrl-Tab (after I assigned the shortcut), and “tabs” to the next document if my cursor is outside a table. Beautiful
I can’t believe I didn’t do this sooner. It always annoyed me that Word violated what I considered to be a MS/Windows standard.
You might want to take a look at the template I describe above that restores Word’s MDI, another pet peeve of mine.
Klaus
-
WSKlaus
AskWoody LoungerHi Klaus
,
your code worked like a charm. I put it in normal.dot, with toolbar icon, assigned shortcut and all.
The universe is balanced once again.
Thanks,
Klaus
-
WSKlaus
AskWoody LoungerFebruary 28, 2002 at 8:49 pm in reply to: Exit Codes from external program (Any VBA 6 client or VB 6) #573535Thanks for the help.
Although strCommandLine executes without a problem, EnvVar doesn’t return anything. All I get is a blank MsgBox when I try with WZZIP and Notepad.
I was thinking there might be a solution in WSH somewhere, I just didn’t know how to get started.
Klaus
-
WSKlaus
AskWoody LoungerFebruary 27, 2002 at 6:18 pm in reply to: Exit Codes from external program (Any VBA 6 client or VB 6) #573113Wassim,
thanks for replying.
Correct, Shell returns the shelled program’s Task ID, but this basically only tells you if the shelled program was =launched= correctly. If not, it returns 0.
What I need is to capture the return code generated by the shelled program itself =after= it was launched.
Step 1: “Shell” launches program correctly, returns a non-zero task id and is done.
Stpe 2: Launched program attempts to perform the requested operation (i.e., add files to a zip archive), and returns whether it was successful, or if there was trouble (e.g., the file to be zipped does not exist, disk full etc). That’s the value I need to capture.
Re.: “WinZip is not programmer friendly ” – you may want to try their new WinZip Command Line download. It only has two commands, WZZIP and WZUNZIP, with all the commandline parameters you need. No UI to get in the way.
Klaus
-
WSKlaus
AskWoody LoungerThanks, Sam.
Worked like a charm
Klaus -
WSKlaus
AskWoody LoungerI have tried several versions of pgp in WInXP, none of which seem to work right. Some won’t install (7.0.3), some say they haven’t been tested under XP but install anyway (7.1), some install without problems (6.5.8).
The biggest problem I see is with pgp disk: when mounting a disk, if it works at all, it will be mounted to a drive without a drive letter (it’s just a space in the drive list).
Once mounted, everything seems to work OK, but I haven’t done any testing yet beyond what I described. I haven’t decide which version to use yet.
Weird, that 7.1 works well under Win2K, but not XP.
-
WSKlaus
AskWoody LoungerJack,
thanks for replying. Your solution was my first thought, as well. But unlike a msgbox, which would pause execution until the user responds (synchronous), the code would continue past the docmd.openform command asynchronously.I did come up with a workaround which I won’t describe here, since it is specific to my particular project. It would take too long to explain the circumstances, and the chances anyone else would benefit are slim.
Nonetheless, if there is a way to communicate with a MsgBox, I would still like to know.
Thanks again,
Klaus
![]() |
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
-
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
1 hour, 8 minutes ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
5 hours, 6 minutes ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
5 hours, 8 minutes ago -
Unable to eject external hard drives
by
Robertos42
4 hours, 44 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
8 hours, 18 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
5 hours, 13 minutes ago -
Synology limits hard drives
by
Susan Bradley
1 day, 9 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
11 hours, 45 minutes ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
1 day, 15 hours ago -
Upgrade Sequence
by
doneager
1 day, 8 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 8 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
7 hours, 33 minutes ago -
The incredible shrinking desktop icons
by
Thumper
2 days, 12 hours ago -
Windows 11 Insider Preview Build 22635.520 (23H2) released to BETA
by
joep517
2 days, 14 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 9 hours ago -
Shellbag Analyser & Cleaner Update
by
Microfix
23 hours, 7 minutes ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
2 days, 23 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
2 days, 3 hours ago -
Speeding up 11’s search
by
Susan Bradley
11 hours, 35 minutes ago -
HP Pavilion Will Not Wake Up After Being Idle for Longer Period
by
WSwalterwood44
23 hours, 32 minutes ago -
Make a Windows 11 Local Account Passwordless
by
Drcard:))
3 days, 13 hours ago -
Ubuntu 25.04 (Plucky Puffin)
by
Alex5723
3 days, 20 hours ago -
24H2 fixed??
by
CWBillow
2 days, 13 hours ago -
Uninstalr Updates
by
jv16
4 days, 1 hour ago -
Apple zero days for April
by
Susan Bradley
3 days, 6 hours ago -
CVE program gets last-minute funding from CISA – and maybe a new home
by
Nibbled To Death By Ducks
2 days, 23 hours ago -
Whistleblower describes DOGE IT dept rumpus at America’s labor watchdog
by
Nibbled To Death By Ducks
5 days ago -
Seeing BSOD’s on 24H2?
by
Susan Bradley
4 days, 7 hours ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
4 days, 15 hours ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
5 days, 9 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.