-
WSMarkU
AskWoody LoungerUnfortunately, I need the cells to contain text, rather than simply formatting it as text on the fly (for reasons I won’t go into here). Luckily, I’ve found a solution that seems to work under both regional settings.
For the date, I’ve used =CONCATENATE(ReportFYear,”-“,TEXT(ReportFPeriod,”00″),”-01T00:00:00Z”).
For the number, I’ve used =FIXED(CostImpact,2,TRUE) which formats the number to 2 (or whatever) decimal places, then formats it as text.
-
WSMarkU
AskWoody LoungerAn alternative suggestion…
If the formatting depends only on whether the number is positive, zero or negative, you can do it directly in the cell format. This is simpler than using conditional formatting, but very much more limited in what it can do.
I’ve also used the Arial font from the character map to produce the formula “[Green]▲0;[Red]▼0;[Blue]►0”. This formats positive numbers in green with a ▲, negative numbers in red with a ▼, and zeros in blue with a ►. You could also add another section at the end (separated by a semicolon) for blanks.
(Looks like I was beaten to it by Rory!)
-
WSMarkU
AskWoody LoungerThanks for everyone’s advice!
One of my colleagues found another solution before I got to try any of your suggestions. In case anyone gets a similar problem, here’s what my colleague did…
You can use MFCMapi (http://mfcmapi.codeplex.com/) to move folders. Since Sent Items is a special folder, the move function is greyed out, but you can copy and paste instead, ticking the option to move instead (a bizarre workaround, but it did the trick).
I still have no idea how the folder got moved in the first place, but that’s IT for you.
-
WSMarkU
AskWoody LoungerThanks for the suggestion, John, but it didn’t resolve the problem.
The Sent Items folder is still in Deleted Items, and it still refuses to move.
Does anyone have any other ideas? If not, I’ll have to archive all the email to a PST, destroy the mailbox, and create it from scratch!
-
WSMarkU
AskWoody LoungerNovember 13, 2008 at 11:50 pm in reply to: Show Report Header and Footer for Empty Subreport (Access 97) #1132732Yes, that did the trick.
And you’re right, it is easier done than said!
Many thanks!
-
WSMarkU
AskWoody LoungerNovember 13, 2008 at 8:10 pm in reply to: Show Report Header and Footer for Empty Subreport (Access 97) #1132705Thanks, Hans, but that’s not really what I’m after.
I would like to force the subreports to appear on the main report, even if they have no data (i.e. the report header and footer to show, although presumably not the detail section since this would be empty). If you open a data-less report directly, you do get headers and footers, but if you open the same report as a subreport, you see nothing.
One way I could achieve this is to move the headers and footers to the main report, leaving only the detail section in the subreport. The reason I’m reluctant to do this is that it would make it harder to get the controls to align nicely whenever I make changes to the subreport.
Any other ideas, anyone? If not, I’ll use Plan B.
Regards,
Mark
-
WSMarkU
AskWoody LoungerI’d started looking at a solution for this a while ago, albeit for ODBC connections to SQL Server. I got as far as creating an Excel spreadsheet where you could list the connection details, and some code that would put them into the Registry.
It’s been a while since I looked at it, and I can’t even remember if it works or not. If you don’t get any other answers and you’re really desperate, I’ll try to strip all the rubbish out of it, and post it on here.
-
WSMarkU
AskWoody LoungerHere’s another idea: could you have another table linking the various sizes to the related value? This table could be included in the query, linked by the size, to return the required value, thereby replacing the nested IIFs. You could then use the latter part of your clause to divide by [pack] if required.
-
WSMarkU
AskWoody LoungerYes, it does work in Excel 97, but only if you remove the “, True” argument at the end.
I was really hoping to modify the object directly, rather than have to make a selection, but it really does look like that’s the only solution.
Thanks you, Hans!
-
WSMarkU
AskWoody LoungerIn case it’s useful for anyone, here’s a stripped down Access 97 database with the code.
-
WSMarkU
AskWoody LoungerI can’t remember where I got this code (I’m certainly not clever enough to write it myself) but it does work well.
The test subroutine opens Notepad and waits until you close it before continuing to the next line of code.
Hope that helps!
Option Compare Database Option Explicit Const PROCESS_QUERY_INFORMATION = &H400 Const SYNCHRONIZE = &H100000 Const STILL_ACTIVE = &H103& Const INFINITE = &HFFFFFFFF Private Declare Function OpenProcess Lib "kernel32" _ (ByVal dwDesiredAccess As Long, _ ByVal bInheritHandle As Long, _ ByVal dwProcessId As Long) As Long Private Declare Function GetExitCodeProcess Lib "kernel32" _ (ByVal hProcess As Long, lpExitCode As Long) As Long Sub TestRunApp() apiRunAppThenWait "NOTEPAD.exe", vbNormalFocus MsgBox "Application has finished running.", vbInformation, "DONE" End Sub Public Sub apiRunAppThenWait(strCmdLine As String, intWinMode As Integer) On Error GoTo Err_Handler Dim hInstance As Long Dim hProcess As Long Dim lngRetval As Long Dim lngExitCode As Long ' Get Instance Handle & pass to OpenProcess function: hInstance = Shell(strCmdLine, intWinMode) hProcess = OpenProcess(PROCESS_QUERY_INFORMATION Or SYNCHRONIZE, _ True, hInstance) Do lngRetval = GetExitCodeProcess(hProcess, lngExitCode) DoEvents Loop Until lngExitCode STILL_ACTIVE Exit_Sub: Exit Sub Err_Handler: Select Case Err.Number Case 53 ' File not found Beep MsgBox "Invalid command line - cannot open application.", _ vbExclamation, "FILE NOT FOUND" Case Else Beep MsgBox "Error " & Err.Number & ": " & Err.Description End Select Resume Exit_Sub End Sub
-
WSMarkU
AskWoody LoungerThanks for your responses everyone. Very interesting!
I think everyone learns the importance of “ease of maintenance” the hard way, by getting horribly burned when an old project rears its ugly head. And it’s the same with those supposedly “one-off” projects.
To go back to my original questions, I think I’ll continue to take the second option because it’s easier to write and read. However, I think constants are more appropriate for text that can be re-used elsewhere.
Regards,
Mark
-
WSMarkU
AskWoody LoungerThanks, Hans, that’s reassuring.
One of my university tutors always advocated laziness (at least in the sense of taking the most efficient route to a good end result), so I can now happily continue to follow his advice.
-
WSMarkU
AskWoody LoungerWell, the problem’s been resolved for now by rebooting the server (which is running Windows Server 2003, not XP).
The server has a RAID array, so it’s unlikely that a disk error could cause a recurring problem in a particular folder. Therefore I doubt that running checkdisk would sort the problem out, except for the fact that it would force a reboot.
Thanks a lot for your help and suggestions with this very strange problem. I think we’ll just have to reboot if we get any further problems.
Regards,
Mark
-
WSMarkU
AskWoody LoungerYes, I wasn’t very clear on that, was I? Sorry!
They are stored on a network drive. Everything I mentioned in my first post was tried whilst logged on to the server as an administrator.
One of my colleagues has just told me that we have had this problem before with PDFs, and that it was only resolved by rebooting the server. We’ll have to wait until no-one’s using it tonight to reboot. He suspects the file has been deleted (one of users was trying to overwrite the file with an updated version), but not completely.
The problem has only occurred in this particular folder. I can’t work out what the root cause is.
Regards,
Mark
![]() |
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
-
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
1 hour, 2 minutes ago -
24H2 Installer – don’t see ption for non distructive install
by
JP
1 hour, 28 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
12 hours, 23 minutes ago -
How much I spent on the Mac mini
by
Will Fastie
1 hour, 50 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
4 hours, 11 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
18 hours, 15 minutes ago -
Setting up Windows 11
by
Susan Bradley
1 hour, 51 minutes ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
13 hours, 43 minutes ago -
Powershell version?
by
CWBillow
14 hours, 36 minutes ago -
SendTom Toys
by
CWBillow
9 hours, 16 minutes ago -
Add shortcut to taskbar?
by
CWBillow
18 hours, 32 minutes ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
1 day, 10 hours ago -
How can I install Skype on Windows 7?
by
Help
1 day, 9 hours ago -
Logitech MK850 Keyboard issues
by
Rush2112
16 hours, 31 minutes ago -
We live in a simulation
by
Alex5723
2 days, 1 hour ago -
Netplwiz not working
by
RetiredGeek
1 day, 11 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
2 days, 13 hours ago -
Microsoft is killing Authenticator
by
Alex5723
1 day, 1 hour ago -
Downloads folder location
by
CWBillow
2 days, 19 hours ago -
Remove a User from Login screen
by
CWBillow
1 day, 15 hours ago -
TikTok fined €530 million for sending European user data to China
by
Nibbled To Death By Ducks
2 days, 11 hours ago -
Microsoft Speech Recognition Service Error Code 1002
by
stanhutchings
2 days, 11 hours ago -
Is it a bug or is it expected?
by
Susan Bradley
13 hours, 10 minutes ago -
Image for Windows TBwinRE image not enough space on target location
by
bobolink
2 days, 10 hours ago -
Start menu jump lists for some apps might not work as expected on Windows 10
by
Susan Bradley
1 day, 9 hours ago -
Malicious Go Modules disk-wiping malware
by
Alex5723
2 days, 23 hours ago -
Multiple Partitions?
by
CWBillow
3 days ago -
World Passkey Day 2025
by
Alex5723
1 hour, 12 minutes ago -
Add serial device in Windows 11
by
Theodore Dawson
4 days, 9 hours ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
2 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.