-
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.
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
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
-
Long Live the Red Envelope Era | Farewell to DVDs | Netflix
by
Alex5723
4 hours, 57 minutes ago -
Faststone Image Viewer updates
by
Alex5723
6 hours, 41 minutes ago -
Malicious ad served inside Bing’s AI chatbot
by
Alex5723
6 hours, 43 minutes ago -
win10 pro 22H2 current minus 1 mo,to, win11. suggestions…
by
krism
2 hours, 31 minutes ago -
Microsoft entered negotiations to sell Bing to Apple in 2020
by
Alex5723
15 hours, 53 minutes ago -
X CEO shows her iPhone’s Home Screen – and X isn’t there
by
Alex5723
17 hours, 7 minutes ago -
Keeping an older Mac secure
by
Susan Bradley
17 hours, 20 minutes ago -
Thunderbird – problem ”setting up existing email address”
by
stajourneyman
17 hours, 17 minutes ago -
Windows 11 Insider Preview build 23555 released to DEV
by
joep517
1 day, 4 hours ago -
Something didn’t go as planned KB5030310, KB 5030219
by
Donald Wyllie
1 hour, 30 minutes ago -
“Enhanced” search box
by
WSraysig
1 day, 5 hours ago -
Windows Ends Installation Path for Free Windows 7/8 Upgrade
by
Alex5723
1 day, 6 hours ago -
Icon text drop shadows latest Win 11 update
by
kenlcarter50
23 hours, 59 minutes ago -
Group Policy to change context menu to Win10 version?
by
HATech19
1 day, 7 hours ago -
You can no longer activate newer Windows 11 builds with Windows 7/8/8.1 keys
by
joep517
6 hours, 35 minutes ago -
Reddit is removing the option to prevent Reddit from tracking ..
by
Alex5723
1 day, 15 hours ago -
Vivaldi for iOS and iPadOS released
by
Alex5723
1 day, 15 hours ago -
Windows 11 attempted update to 22H2 results in Error Code 0x8024001e
by
Tiernan
1 day, 4 hours ago -
lock screen goes black after ~ 25-30 secs.
by
krism
1 day ago -
Need File Location Which Lists Default Apps Used
by
HARLEYMAN124
18 minutes ago -
Canadian’s identify alternative tape that prolongs life of laptop batteries
by
Kathy Stevens
2 days, 1 hour ago -
Browswers and Windows 11
by
WSG
2 days, 2 hours ago -
Advice on whether to upgrade to Windows 11
by
millerah
2 days, 2 hours ago -
Linuxmint LMDE 6 Officially Released
by
Microfix
1 day, 5 hours ago -
Edge browser – ad quality concern
by
doriel
1 hour, 17 minutes ago -
Strange problem after upgrade from Win10Pro 22H2 to Win11Pro 22H2
by
JohnH
1 day, 16 hours ago -
Return Full Context Menus to File Explorer
by
RetiredGeek
1 day, 7 hours ago -
Unusual Activity on Startup
by
Kenneth Stephens
5 hours, 17 minutes ago -
Windows Backup – incremental possible?
by
colin_thames
3 days, 1 hour ago -
New HD addition??
by
weendoggy
2 days, 16 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-2023 by AskWoody Tech LLC. All Rights Reserved.