-
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. 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
-
Backing up Google Calendar
by
CWBillow
1 hour, 31 minutes ago -
Windows 11 Insider Preview build 27818 released to Canary
by
joep517
14 hours, 9 minutes ago -
File Naming Conventions (including Folders)
by
Magic66
11 hours, 54 minutes ago -
Windows 11 Insider Preview Build 26100.3613 (24H2) released to Release Preview
by
joep517
21 hours, 27 minutes ago -
Microsoft sends emails to Windows 10 users about EOS
by
Alex5723
8 hours, 5 minutes ago -
Outlook 2024 importing Calendar and Contacts – FAILURE
by
Kathy Stevens
15 hours, 53 minutes ago -
Adding Microsoft Account.
by
DaveBRenn
22 hours, 52 minutes ago -
Windows 11 Insider Preview build 26120.3576 released to DEV and BETA
by
joep517
1 day, 22 hours ago -
Windows 11 Insider Preview Build 22635.5090 (23H2) released to BETA
by
joep517
1 day, 22 hours ago -
Windows 11 won’t boot
by
goducks25
2 days, 12 hours ago -
Choosing virtual machine product for Windows on Mac
by
peterb
1 day, 12 hours ago -
Rest in Peace
by
Roy Lasris
2 days, 17 hours ago -
CISA : Install Windows March 2025 Updates until April 1 or shut down PC.
by
Alex5723
2 days, 16 hours ago -
Google proposes users with incompatible Win 11 PCs to migrate to ChromeOS Flex
by
Alex5723
2 days, 17 hours ago -
Drivers for Epson Perfection V600 Photo – scanner
by
Bookman
1 day, 22 hours ago -
Long Time Member
by
jackpet
2 days, 20 hours ago -
Woody Leonhard (1951–2025)
by
Will Fastie
14 hours, 13 minutes ago -
What I learned from Woody Leonhard
by
B. Livingston
2 days, 13 hours ago -
Windows Settings today
by
Simon Bisson
3 days, 4 hours ago -
Mail Merge magic in Microsoft Word
by
Peter Deegan
2 hours, 33 minutes ago -
Businesses in the crosshairs
by
Susan Bradley
1 day, 18 hours ago -
Double-row taskbar?
by
CWBillow
10 hours, 4 minutes ago -
Upgrading non-supported HW to Win 11
by
RetiredGeek
19 hours, 39 minutes ago -
Audio locks up after 15 minutes
by
WSArthurR
19 hours, 10 minutes ago -
Copilot app uninstalled
by
Susan Bradley
17 hours, 21 minutes ago -
Strongbox Password Manager Sold to Applause Group – Cost Escalation Imminent
by
Paul T
4 days, 14 hours ago -
SharePoint
by
CBFPD-Chief115
3 days, 12 hours ago -
Google replacing Google Assistant with Gemini AI assistant
by
Alex5723
4 days, 16 hours ago -
You can no longer stop Alexa from sending voice recordings to Amazon
by
Alex5723
4 days, 17 hours ago -
Meeting Woody in person
by
Susan Bradley
15 hours, 44 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.