-
WSStewart
AskWoody LoungerHans,
Thank you. There is nothing like a simplistic solution to fix things, I will give it a go.
Why a shortcut is returned still bothers me though. Do you have any idea why a filespec of *.mdb should return *.mdb and *.lnk where the target of the shortcut is a mdb?
Is it possible to have a filespec with an exclusion eg *.mdb;*.mde;-*.lnk ?
Cheers
Stewart
-
WSStewart
AskWoody LoungerHans,
Thank you. There is nothing like a simplistic solution to fix things, I will give it a go.
Why a shortcut is returned still bothers me though. Do you have any idea why a filespec of *.mdb should return *.mdb and *.lnk where the target of the shortcut is a mdb?
Is it possible to have a filespec with an exclusion eg *.mdb;*.mde;-*.lnk ?
Cheers
Stewart
-
WSStewart
AskWoody LoungerMark,
I don
-
WSStewart
AskWoody LoungerMark,
I don
-
WSStewart
AskWoody Loungerfor anyone who is interested.
The Access conversion Reporting Tool was released. I downloaded it and looked with great interest to see how MS were going to handle this sort of scenario where the automation object fails to respond.
They shell out and run their converter/scanner exe.
They then get a handle to the app.
This allows them to kill the instance after time out or user cancel.code snipits from scanner follow
'build the command line, assume adscanner.exe is in my directory strCmdLine = """" & CurrentProject.Path If Right$(strCmdLine, 1) "" Then strCmdLine = strCmdLine & "" strCmdLine = strCmdLine & "adscanner.exe"" " 'calls out to the scanner tool lTaskId = Shell(strCmdLine, vbHide) If lTaskId = 0 Then MsgBox "Error launching AdScanner!", vbOKOnly, "Error" GoTo LExit End If hProcess = OpenProcess(SYNCHRONIZE, False, lTaskId) 'if we can't get a process handle then assume adscanner is already done If hProcess Then 'Keep waiting until the process ends or the user cancels Do While (WaitForSingleObject(hProcess, 0) = WAIT_TIMEOUT) And (fStopScanning = False) 'Wait a second before we try again. dtNextTryDate = DateAdd("s", 1, Now) Do DoEvents Loop Until dtNextTryDate <= Now Loop CloseHandle hProcess End If
Oh well when the MS programmers have to do it this way, there is no hope for me.
Stewart
-
WSStewart
AskWoody Loungerfor anyone who is interested.
The Access conversion Reporting Tool was released. I downloaded it and looked with great interest to see how MS were going to handle this sort of scenario where the automation object fails to respond.
They shell out and run their converter/scanner exe.
They then get a handle to the app.
This allows them to kill the instance after time out or user cancel.code snipits from scanner follow
'build the command line, assume adscanner.exe is in my directory strCmdLine = """" & CurrentProject.Path If Right$(strCmdLine, 1) "" Then strCmdLine = strCmdLine & "" strCmdLine = strCmdLine & "adscanner.exe"" " 'calls out to the scanner tool lTaskId = Shell(strCmdLine, vbHide) If lTaskId = 0 Then MsgBox "Error launching AdScanner!", vbOKOnly, "Error" GoTo LExit End If hProcess = OpenProcess(SYNCHRONIZE, False, lTaskId) 'if we can't get a process handle then assume adscanner is already done If hProcess Then 'Keep waiting until the process ends or the user cancels Do While (WaitForSingleObject(hProcess, 0) = WAIT_TIMEOUT) And (fStopScanning = False) 'Wait a second before we try again. dtNextTryDate = DateAdd("s", 1, Now) Do DoEvents Loop Until dtNextTryDate <= Now Loop CloseHandle hProcess End If
Oh well when the MS programmers have to do it this way, there is no hope for me.
Stewart
-
WSStewart
AskWoody LoungerAndrew,
if you have secured databases prior to 2000 the major differences in XP are
1. you can no longer set permissions for individual modules. You now set a password for the code project. This is available from Properties under the Tools menu in the VB project editor. Look on the protection tab.
2. The admin user may no longer be identical across different MDW files ( I have not worked out if this has an impact yet).
Stewart
-
WSStewart
AskWoody LoungerAndrew,
if you have secured databases prior to 2000 the major differences in XP are
1. you can no longer set permissions for individual modules. You now set a password for the code project. This is available from Properties under the Tools menu in the VB project editor. Look on the protection tab.
2. The admin user may no longer be identical across different MDW files ( I have not worked out if this has an impact yet).
Stewart
-
WSStewart
AskWoody LoungerThanks for taking the time to read and reply Jan.
That was just a sample of the type of thing I was looking for, in all honesty I don’t think that the code ever ran to completion, I kept killing it because my Automation Server just sat there and never generated the OleServerBusyTimeout Error that I was hoping for. Some days I just hate MS Office and MS in general. Other days im makes me say “Wow”. Such is life.
I generally try to always exit at the Proc_Exit: section or whatever the designated exit point is for the procedure.
Cheers
Stewart
-
WSStewart
AskWoody LoungerThanks for taking the time to read and reply Jan.
That was just a sample of the type of thing I was looking for, in all honesty I don’t think that the code ever ran to completion, I kept killing it because my Automation Server just sat there and never generated the OleServerBusyTimeout Error that I was hoping for. Some days I just hate MS Office and MS in general. Other days im makes me say “Wow”. Such is life.
I generally try to always exit at the Proc_Exit: section or whatever the designated exit point is for the procedure.
Cheers
Stewart
-
WSStewart
AskWoody LoungerIn a XP & notes environment I get
?GetDefaultMailClient()
Outlook Expresscall TestGetMailClientSubkeys
Hotmail;Lotus Notes;Outlook Express
0 Hotmail
1 Lotus Notes
2 Outlook Express -
WSStewart
AskWoody LoungerIn a XP & notes environment I get
?GetDefaultMailClient()
Outlook Expresscall TestGetMailClientSubkeys
Hotmail;Lotus Notes;Outlook Express
0 Hotmail
1 Lotus Notes
2 Outlook Express -
WSStewart
AskWoody LoungerThanks for that Hans,
I found a vb class that let me enumerate all values under a specified key, except reg_Binary. The DisabledItems values are of type REG_BINARY which as you say is pretty horrible to get anything out of. I extended the class to add REG_Binary types and then added a little routine to strip the database name out of the value. It’s not pretty and it’s not perfect, but it does the job.
HKEY_CURRENT_USERSoftwareMicrosoftOffice10.0AccessResiliencyDisabledItems is only applicable to XP, and if a file is deleted or moved the key is not updated so it’s not a very robust mechanism.
I
-
WSStewart
AskWoody LoungerThanks for that Hans,
I found a vb class that let me enumerate all values under a specified key, except reg_Binary. The DisabledItems values are of type REG_BINARY which as you say is pretty horrible to get anything out of. I extended the class to add REG_Binary types and then added a little routine to strip the database name out of the value. It’s not pretty and it’s not perfect, but it does the job.
HKEY_CURRENT_USERSoftwareMicrosoftOffice10.0AccessResiliencyDisabledItems is only applicable to XP, and if a file is deleted or moved the key is not updated so it’s not a very robust mechanism.
I
-
WSStewart
AskWoody LoungerThe problem with opening recordsets on parameter queries is that you have to explicitly specify the parameter values for the query and then execute it.
I’d be tempted to change your code to something like
Private Sub Report_Open(Cancel As Integer)
Dim intColCount As Integer
Dim intControlCount As Integer
Dim i As Integer
Dim strName As StringDim myStr as string
On Error Resume Next
Dim rst As DAO.Recordset
Dim db As DAO.Databasemystr = “TRANSFORM Count(tblVolunteerSchedule.VolDate) AS CountOfVolDate”
mystr = mystr & “SELECT tblVolunteers.LastName, tblVolunteers.FirstName”
mystr = mystr & “FROM tblVolunteers LEFT JOIN tblVolunteerSchedule ON tblVolunteers.VolunteerID = tblVolunteerSchedule.VolunteerID”
mystr = mystr & “WHERE (((tblVolunteerSchedule.VolDate) Between #”
mystr = mystr & format([Start Date],”mm/dd/yyyy”) & “# And #” & format([End Date],”mm/dd/yyyy”) & “#))”
mystr = mystr & “GROUP BY tblVolunteers.LastName, tblVolunteers.FirstName”
mystr = mystr & “PIVOT tblVolunteerSchedule.VolDate;”Set db = CurrentDb
Set rst = db.OpenRecordset(mystr)This will generate the query for you. You will have to replace the [StartDate] and [EndDate] with valid fields or values.
otherwise have a look in the help for using the querydef object
eg
Set rst = query1.openrecordset
![]() |
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
-
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
3 hours, 38 minutes ago -
Office apps read-only for family members
by
b
6 hours, 14 minutes ago -
Defunct domain for Microsoft account
by
CWBillow
3 hours, 6 minutes ago -
24H2??
by
CWBillow
1 hour, 12 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
15 hours ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
8 hours, 13 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
3 hours, 3 minutes ago -
two pages side by side land scape
by
marc
2 days, 4 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
2 days, 6 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
1 day, 9 hours ago -
Security Essentials or Defender?
by
MalcolmP
1 day, 11 hours ago -
April 2025 updates out
by
Susan Bradley
6 hours, 44 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
1 day, 5 hours ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
19 hours, 12 minutes ago -
Creating an Index in Word 365
by
CWBillow
1 day, 21 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
9 hours, 46 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
3 days, 1 hour ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
3 days, 4 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
3 days, 6 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
3 days, 4 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
2 days, 21 hours ago -
I installed Windows 11 24H2
by
Will Fastie
1 day, 4 hours ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
3 days, 9 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
3 hours, 12 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
3 days, 18 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
3 days, 2 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
3 days, 2 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
4 days, 11 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
4 days, 19 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
19 hours, 12 minutes 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.