-
WSMarkLiquorman
AskWoody LoungerIt really wasn’t about having to store the value, it was more about having to know the value at all! Also, I thought that would make it easier to use. For example, take this bit of code:
RunCommand getValue(“acCmdZoom75”)I can put a DLookup in the getValue function to retrieve the actual numeric value. But if there was a way to convert the string directly to the intrinsic constant, it would be faster and cleaner.
Oh well, it was thought.
-
WSMarkLiquorman
AskWoody LoungerUnfortunately, I can’t offer you much more help, as my experience with manipulating graphic files is somewhat limited.
-
WSMarkLiquorman
AskWoody LoungerInstead of “Me!TOrderID”, you might try “Screen.ActiveControl”.
-
WSMarkLiquorman
AskWoody LoungerI know where to find the values, I was just looking for a way to do this so I didn’t have to find the values! It looks like I may have to create a constant/value table.
-
WSMarkLiquorman
AskWoody LoungerSince I don’t have any large reports like Judy mentioned (that take 60 seconds to display), I can’t say this will work. That’s why I said it may be possible to put it in a report’s event. This event might still fire before the report displays. Unforunately there is no AfterReportHasDisplayed event!
-
WSMarkLiquorman
AskWoody LoungerI just discovered an interesting fact. Compacting a database that contains images ADDS(!) 4KB for each new image that has been stored. Don’t know why, and can’t find any documentation in MSKB about this. All we know for sure is that Access is lousy at storing images. I’d really look hard at a redesign.
-
WSMarkLiquorman
AskWoody LoungerI think what you are looking at is different than the Recycle Bin. The unerase utility just goes out to find all instances of a deleted file in your directory (that is filenames that contain a ‘?’ as first character). These may or may not be recoverable. I wouldn’t worry about it.
-
WSMarkLiquorman
AskWoody LoungerYes I could do that, but that’s what I wanted to avoid, having to determine what the codes are. I can envision other scenarios, and it would be nice to be able to specify a string containing a constant name which could be evaluated into the property value. For example, if you use the StrConv function in an SQL statement, you can’t use the intrinsic contstants such as vbProperCase. You have to remember what the code is. It would be nice to be able to get it using a function, something like:
getConstant(“vbProperCase”) -
WSMarkLiquorman
AskWoody LoungerI assume your code looked like this:
docmd.hourglass true
docmd.openreport ……..
docmd.hourglass falseYou have to realize that Access doesn’t stop processing the procedures while the report is opening. It spins that off as a separate task, then continues on with the next line of code (turning the hourglass off). You might try turning the hourglass off in your report code, but I’m not sure that would help much.
A “splash” screen is what you often see as the first screen in an application (showing title, etc.), that automatically disappears after awhile. Merely create a form that has on label on it, and put in nice large letters some caption to the effect of “Please be patient, the report is processing!”. In your form’s TimerInterval, put a value of 5000 (this is 5000 milliseconds, which is 5 seconds) or whatever value you want. Create an Event Procedure for the OnTimer event with the single line of code:
DoCmd.CloseThat’s all it takes. If you get real ambitious, you could pass a parameter in the form’s Arguements property that sets the TimerInterval accordingly.
-
WSMarkLiquorman
AskWoody LoungerYou said you were storing 620MB of images. Was that the sum of the sizes of the original images, or was that the size of the Access database after the images were loaded?
-
WSMarkLiquorman
AskWoody LoungerI’m not sure whether you questions was a general question on using a global function or specific to this function? The nature of your function (Using the IsOpen function to check whether a form is opened) would seem to indicate you are calling this function from yet another form? Perhaps if you could explain the nature of the function call, I could give some clues as to how to make it a global function usable by any form.
As for some specifics, you might want to use Select Case instead of all the nested ElseIf statements.
-
WSMarkLiquorman
AskWoody LoungerYou might try putting a DoEvents right after the DoCmd.Hourglass. Sometimes this helps.
As for not wanting to use a message box, why not just create a “splash” screen with a “Waiting for report to load!” message. You can set the TimerInterval for as long as you want, and put a DoCmd.Close in the OnTimer Event.
-
WSMarkLiquorman
AskWoody LoungerYou could try the forum in Compuserve.
http://go.compuserve.com/msdevapps
(This probably didn’t come out right, I was trying to mark it as a clickable URL. How is this done?)
-
WSMarkLiquorman
AskWoody LoungerIn this situation, I want to store a user option for a Zoom setting for previewing reports. In the option selection form, there would be a combo box, which would contain the string names of the runcommand zoom constants, that is: “acCmdFitToWindow”, “acCmdZoom75”, “acCmdZoom100”, etc. So, I would store the string name (not the numeric equivalent). Then when it comes time to run the report, I want to convert the string name to the numeric equivalent so I can use it with RunCommand.
Yes, I know I can store the numeric value, but then I’d have to dig-out the values (ex., acCmdZoom75=241), and I wanted a method in which I didn’t have to do that. After all, isn’t that one of the benefits of intrinsic constants?
-
WSMarkLiquorman
AskWoody LoungerThanks. Most of the time it isn’t a big deal, but I was trying to following the exchange you had with Jim Dettman in my “Access XP” thread (which has 36 messages), and it was a real chore!
![]() |
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
-
Windows 11 Insider Preview Build 26100.3902 (24H2) released to Release Preview
by
joep517
2 hours, 50 minutes ago -
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
8 hours, 52 minutes ago -
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
19 hours, 12 minutes ago -
Office apps read-only for family members
by
b
21 hours, 48 minutes ago -
Defunct domain for Microsoft account
by
CWBillow
18 hours, 40 minutes ago -
24H2??
by
CWBillow
8 hours, 51 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
3 hours, 5 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
3 hours, 19 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
41 minutes ago -
two pages side by side land scape
by
marc
2 days, 19 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
2 days, 21 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
2 days ago -
Security Essentials or Defender?
by
MalcolmP
2 days, 3 hours ago -
April 2025 updates out
by
Susan Bradley
3 hours, 29 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
1 day, 20 hours ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
1 day, 10 hours ago -
Creating an Index in Word 365
by
CWBillow
2 days, 13 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
1 day, 1 hour ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
3 days, 16 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
3 days, 20 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
3 days, 22 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
3 days, 20 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
3 days, 13 hours ago -
I installed Windows 11 24H2
by
Will Fastie
1 day, 19 hours ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
4 days, 1 hour ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
1 hour, 32 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
4 days, 9 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
3 days, 17 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
3 days, 18 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
5 days, 2 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.