-
WSShane Sargent
AskWoody LoungerAny commonality between the users that are seeing the lag time? Anything that seperates them from users who don’t see the lag time? Say, version of Outlook running on the client, method of connectivity, membership in distribution or security groups?
-
WSShane Sargent
AskWoody LoungerAny commonality between the users that are seeing the lag time? Anything that seperates them from users who don’t see the lag time? Say, version of Outlook running on the client, method of connectivity, membership in distribution or security groups?
-
WSShane Sargent
AskWoody Lounger[indent]
DoCmd.OutputTo acTable, strTableName, “HTML(*.html)”, “F:CenterExportLogsstrTableName.html, False, “””
[/indent]
Try: DoCmd.OutputTo acTable, strTableName, “HTML(*.html)”, “F:CenterExportLogs ” & strTableName & “.html “ , False, “”
-
WSShane Sargent
AskWoody Lounger[indent]
DoCmd.OutputTo acTable, strTableName, “HTML(*.html)”, “F:CenterExportLogsstrTableName.html, False, “””
[/indent]
Try: DoCmd.OutputTo acTable, strTableName, “HTML(*.html)”, “F:CenterExportLogs ” & strTableName & “.html “ , False, “”
-
WSShane Sargent
AskWoody LoungerAh, the beauty of the Search function! My situation was similar, but for multiple MSQuery query tables on multiple worksheets. I surrounded the code from Hans with the below and it worked wonderfully — cheers!
Dim strOldPath As String Dim strNewPath As String strOldPath = "C:Excel" strNewPath = "C:Databases" Dim wSht As Worksheet Dim allwShts As Sheets Set allwShts = Worksheets Dim strName As String 'Loop through each worksheet For Each wSht In allwShts wSht.Activate For Each QueryTable In ActiveSheet.QueryTables strName = QueryTable.Name With ActiveSheet.QueryTables(strName) .CommandText = Replace(.CommandText, strOldPath, strNewPath) .Connection = Replace(.Connection, strOldPath, strNewPath) End With MsgBox strName & "Complete" Next Next wSht MsgBox "Every MSQuery has been changed.", vbInformation
-
WSShane Sargent
AskWoody LoungerAh, the beauty of the Search function! My situation was similar, but for multiple MSQuery query tables on multiple worksheets. I surrounded the code from Hans with the below and it worked wonderfully — cheers!
Dim strOldPath As String Dim strNewPath As String strOldPath = "C:Excel" strNewPath = "C:Databases" Dim wSht As Worksheet Dim allwShts As Sheets Set allwShts = Worksheets Dim strName As String 'Loop through each worksheet For Each wSht In allwShts wSht.Activate For Each QueryTable In ActiveSheet.QueryTables strName = QueryTable.Name With ActiveSheet.QueryTables(strName) .CommandText = Replace(.CommandText, strOldPath, strNewPath) .Connection = Replace(.Connection, strOldPath, strNewPath) End With MsgBox strName & "Complete" Next Next wSht MsgBox "Every MSQuery has been changed.", vbInformation
-
WSShane Sargent
AskWoody LoungerAssuming you have a time/date stamp, transaction# and customer# in the transaction table, base a new query on the transaction table and bring down the fields in the order that I listed them, making sure the time/date stamp is the furtherst to the left. Sort descending by date/time stamp. Add criteria so you select transactions for the customer you wish. Right click in the top pane of the query designer and chose Properties. You’ll see a Top Values property you can set — enter the number 5 to get the last five transactions.
-
WSShane Sargent
AskWoody LoungerAssuming you have a time/date stamp, transaction# and customer# in the transaction table, base a new query on the transaction table and bring down the fields in the order that I listed them, making sure the time/date stamp is the furtherst to the left. Sort descending by date/time stamp. Add criteria so you select transactions for the customer you wish. Right click in the top pane of the query designer and chose Properties. You’ll see a Top Values property you can set — enter the number 5 to get the last five transactions.
-
WSShane Sargent
AskWoody LoungerStraight away, let me say that my Exchange knowledge is pretty shallow. After the unexpected “retirement” of our network admin, we ran into the same trouble. I would hope that the period for which bad mail is kept, or the choice not to keep bad mail at all would be a user configurable option in Exchange; a consultant told us it wasn’t and that our only choice was to delete the Bad Mail folder and create a new one. I wrote this batch file (!!) that does just that; we use Scheduled Tasks to kick it off each morning at 2 AM. Best of luck!
REM Purpose: To remove the BadMail file in Exchange REM which tends to get filled with files in REM accordance with MS KB# 324958. REM Created By: Shane Sargent REM Created On: 01/23/2004 REM REM Modified By: REM Modifed On: REM Modified Comment: REM @echo off REM *** Change directory to correct spot *** chdir /d C:Program FilesExchsrvrMailrootvsi 1 REM *** Rename old BadMail directory *** rename BadMail BadMail_Old REM *** Create new BadMail directory *** mkdir BadMail REM *** Delete contents of, and old BadMail directory; REM do it in quiet mode and don't ask permission to delete the folder. *** rmdir /s /q BadMail_old
Edit — link to Knowledge Base article: KB 324958
-
WSShane Sargent
AskWoody LoungerStraight away, let me say that my Exchange knowledge is pretty shallow. After the unexpected “retirement” of our network admin, we ran into the same trouble. I would hope that the period for which bad mail is kept, or the choice not to keep bad mail at all would be a user configurable option in Exchange; a consultant told us it wasn’t and that our only choice was to delete the Bad Mail folder and create a new one. I wrote this batch file (!!) that does just that; we use Scheduled Tasks to kick it off each morning at 2 AM. Best of luck!
REM Purpose: To remove the BadMail file in Exchange REM which tends to get filled with files in REM accordance with MS KB# 324958. REM Created By: Shane Sargent REM Created On: 01/23/2004 REM REM Modified By: REM Modifed On: REM Modified Comment: REM @echo off REM *** Change directory to correct spot *** chdir /d C:Program FilesExchsrvrMailrootvsi 1 REM *** Rename old BadMail directory *** rename BadMail BadMail_Old REM *** Create new BadMail directory *** mkdir BadMail REM *** Delete contents of, and old BadMail directory; REM do it in quiet mode and don't ask permission to delete the folder. *** rmdir /s /q BadMail_old
Edit — link to Knowledge Base article: KB 324958
-
WSShane Sargent
AskWoody LoungerMmmmm…bananas! The trick is to embed the WHEN…ELSE statement withing the CASE statement. OK, let’s make a fake table to play with. Run this SQL script to make a table named Product that has 3 fields (an identity field named ID, and two fields to hold text values named Color and Durability):
CREATE TABLE [dbo].[Product] ( [ID] [numeric](18, 0) IDENTITY (1, 1) NOT NULL , [Color] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Durability] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY] GO
Populate the new table. In the first record, make Color be “Yellow” and Durability be “Fragile”. Now populate a few more records; go with: Yellow/Durable, Green/Fragile, and Green/Durable.
If the Access query looks like:
SELECT *, IIF([Color] = "Yellow" AND [Durability] = "Fragile", "Banana", "Not Banana") AS WhatIsIt FROM Product
then the SQL Server query looks like this:
SELECT *, CASE WHEN P.Color = 'Yellow' AND P.Durability = 'Fragile' THEN 'Banana' ELSE 'Not Banana' END AS WhatIsIt FROM Product P
-
WSShane Sargent
AskWoody LoungerMmmmm…bananas! The trick is to embed the WHEN…ELSE statement withing the CASE statement. OK, let’s make a fake table to play with. Run this SQL script to make a table named Product that has 3 fields (an identity field named ID, and two fields to hold text values named Color and Durability):
CREATE TABLE [dbo].[Product] ( [ID] [numeric](18, 0) IDENTITY (1, 1) NOT NULL , [Color] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Durability] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY] GO
Populate the new table. In the first record, make Color be “Yellow” and Durability be “Fragile”. Now populate a few more records; go with: Yellow/Durable, Green/Fragile, and Green/Durable.
If the Access query looks like:
SELECT *, IIF([Color] = "Yellow" AND [Durability] = "Fragile", "Banana", "Not Banana") AS WhatIsIt FROM Product
then the SQL Server query looks like this:
SELECT *, CASE WHEN P.Color = 'Yellow' AND P.Durability = 'Fragile' THEN 'Banana' ELSE 'Not Banana' END AS WhatIsIt FROM Product P
-
WSShane Sargent
AskWoody LoungerWithout knowing the data structure of the large table or the types of queries you’re running against it, it’s a bit tough to say, so I’ll speak in generalities.
(1) Judicious use of indexes may speed the queries, though will increase the size of the Access database.
(2) Splitting the large data table into multiple smaller tables may help out. It may violate some basic relational design theory, but, often performance counts more than theory.
(3) Examine the way you apply criteria in your queries to squeeze out some performance gains. For example, if you’re applying criteria to a numeric field with IN(3, 25, 36) you should put the value that occurs most often in the first position; same principle applies to immediate if (IIF) statements.Or after those considerations you may just elect to upsize to SQL Server, Oracle, DB2 or MySQL. Best of luck!
-
WSShane Sargent
AskWoody LoungerWithout knowing the data structure of the large table or the types of queries you’re running against it, it’s a bit tough to say, so I’ll speak in generalities.
(1) Judicious use of indexes may speed the queries, though will increase the size of the Access database.
(2) Splitting the large data table into multiple smaller tables may help out. It may violate some basic relational design theory, but, often performance counts more than theory.
(3) Examine the way you apply criteria in your queries to squeeze out some performance gains. For example, if you’re applying criteria to a numeric field with IN(3, 25, 36) you should put the value that occurs most often in the first position; same principle applies to immediate if (IIF) statements.Or after those considerations you may just elect to upsize to SQL Server, Oracle, DB2 or MySQL. Best of luck!
-
WSShane Sargent
AskWoody LoungerI do have a full version of Adobe, and nope, no dice.
Once the PDF is created, I can manually add bookmarks for where the value in the header section changes, or split the big PDF into multiple PDFs, but I have to believe that some person more clever than I has automated that process and is willing to make a reasonable profit for their efforts.
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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
-
Updates seem to have broken Microsoft Edge
by
rebop2020
6 minutes ago -
Wait command?
by
CWBillow
56 minutes ago -
Malwarebytes 5 Free version manual platform updates
by
Bob99
3 hours, 1 minute ago -
inetpub : Microsoft’s patch for CVE-2025–21204 introduces vulnerability
by
Alex5723
9 hours, 37 minutes ago -
Windows 10 finally gets fix
by
Susan Bradley
18 hours, 30 minutes ago -
AMD Ryzen™ Chipset Driver Release Notes 7.04.09.545
by
Alex5723
19 hours, 50 minutes ago -
Win 7 MS Essentials suddenly not showing number of items scanned.
by
Oldtimer
14 hours, 23 minutes ago -
France : A law requiring messaging apps to implement a backdoor ..
by
Alex5723
1 day, 8 hours ago -
Dev runs Windows 11 ARM on an iPad Air M2
by
Alex5723
1 day, 9 hours ago -
MS-DEFCON 3: Cleanup time
by
Susan Bradley
4 hours, 43 minutes ago -
KB5056686 (.NET v8.0.15) Delivered Twice in April 2025
by
lmacri
1 hour, 24 minutes ago -
How to enable Extended Security Maintenance on Ubuntu 20.04 LTS before it dies
by
Alex5723
1 day, 20 hours ago -
Windows 11 Insider Preview build 26200.5562 released to DEV
by
joep517
2 days ago -
Windows 11 Insider Preview build 26120.3872 (24H2) released to BETA
by
joep517
2 days ago -
Unable to eject external hard drives
by
Robertos42
11 hours, 27 minutes ago -
Saying goodbye to not-so-great technology
by
Susan Bradley
1 hour, 12 minutes ago -
Tech I don’t miss, and some I do
by
Will Fastie
5 hours, 1 minute ago -
Synology limits hard drives
by
Susan Bradley
3 days, 5 hours ago -
Links from Microsoft 365 and from WhatsApp not working
by
rog7
2 days, 7 hours ago -
WhatsApp Security Advisories CVE-2025-30401
by
Alex5723
3 days, 11 hours ago -
Upgrade Sequence
by
doneager
3 days, 4 hours ago -
Chrome extensions with 6 million installs have hidden tracking code
by
Nibbled To Death By Ducks
1 day, 10 hours ago -
Uninstall “New Outlook” before installing 2024 Home & Business?
by
Tex265
2 days, 3 hours ago -
The incredible shrinking desktop icons
by
Thumper
4 days, 8 hours ago -
Windows 11 Insider Preview Build 22635.5240 (23H2) released to BETA
by
joep517
4 days, 9 hours ago -
Connecting hard drive on USB 3.2 freezes File Explorer & Disk Management
by
WSJMGatehouse
1 day, 8 hours ago -
Shellbag Analyser & Cleaner Update
by
Microfix
1 day, 2 hours ago -
CISA warns of increased breach risks following Oracle Cloud leak
by
Nibbled To Death By Ducks
4 days, 19 hours ago -
Outlook 2024 two sent from email addresses
by
Kathy Stevens
4 hours, 50 minutes ago -
Speeding up 11’s search
by
Susan Bradley
2 days, 7 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.