-
WSFlyerMike
AskWoody LoungerWhew. That does make a big difference. I missed that from his earlier message, and I didn’t download the original attachment.
-
WSFlyerMike
AskWoody LoungerAgreed that the reply was standard, but Rudi is missing the DAO library?! That is a pretty serious library to be lacking… I would think that a re-install of MS Access might be in order.
-
WSFlyerMike
AskWoody LoungerOctober 17, 2006 at 4:15 pm in reply to: Can’t create a one-to-many relationship (Access 2002 SP3) #1033973You’re most welcome.
As a charter member of the [slap to the forehead] club, I can assure you that we have a lot of company.
-
WSFlyerMike
AskWoody LoungerOctober 17, 2006 at 3:55 pm in reply to: Can’t create a one-to-many relationship (Access 2002 SP3) #1033970Is the Patient ID field indexed in the Pathology Report and Image tables? If so, are duplicates allowed?
-
WSFlyerMike
AskWoody LoungerI agree that formulas cannot apply formatting in the sense of font attributes (bold, underline, italics, size).
Part of my earlier suggestion involved implementing the TEXT function so that the value in B2 would match the “format” of the first column in his lookup table which included leading zeros. I am curious if the poster has tried this suggestion.
-
WSFlyerMike
AskWoody LoungerI applied the range name MyTable to Provider!$A$5:$C$1179.
Then I used the following formula:
=VLOOKUP(TEXT(TRIM(B2),”000000″),MyTable,3,0)
It seemed to work. For non-matches (#N/A), you might want to alter the formula a bit.
-
WSFlyerMike
AskWoody LoungerRegarding column G in the “Downloaded Sep 06 PS Expense” sheet:
You are applying a Trim function to the lookup table (Payroll JE_W_Cash Benefits!$N$8:$O$177). The only column that needs to be trimmed is column N of that block. Typically if I’m using a column or lookup purposes, I’ll make sure that all leading spaces have been trimmed. It cuts down on a lot of overhead in my formulas.
You are also applying a Value function to a non-numeric result.
Your original formula was:
=IF(ISNA(VLOOKUP(TRIM(B3),TRIM(‘PAYROLL JE_ W_ CASH BENEFITS’!$N$8:$O$177,1,FALSE))),0,VALUE(VLOOKUP(TRIM(B3),TRIM(‘PAYROLL JE_ W_ CASH BENEFITS’!$N$8:$O$177,1,FALSE))))I reduced it to:
=IF(ISNA(VLOOKUP(TRIM(B3),’PAYROLL JE_ W_ CASH BENEFITS’!$N$8:$O$177,1,FALSE)),0,VLOOKUP(TRIM(B3),’PAYROLL JE_ W_ CASH BENEFITS’!$N$8:$O$177,1,FALSE))You are returning the first column from the lookup table? If that was really your intention. you could get by with:
=IF(ISNA(VLOOKUP(TRIM(B3),’PAYROLL JE_ W_ CASH BENEFITS’!$N$8:$O$177,1,FALSE)),0,B3)
-
WSFlyerMike
AskWoody LoungerOctober 11, 2006 at 3:19 pm in reply to: Know the real name and surname of user logged… (2000 sr 1) #1032802Actually the fGetFullNameOfLoggedUser routine does exactly what you requested.
-
WSFlyerMike
AskWoody LoungerBefore we edit your routine, what do you want to do to all of the selected Worksheets? It is often advantageous not to select worksheets (or cells, rows, etc.).
The following routine identifies all of the worksheets in the active workbook that are not named “data”:
Public Sub FindMySheets() On Error goto Err_FindMySheets Dim i As Integer, iIndex As Integer Dim sWorksheets() As String With Application.ActiveWorkbook For i = 1 To .Worksheets.Count If .Sheets(i).Name "data" Then iIndex = iIndex + 1 ReDim Preserve sWorksheets(iIndex) End If Next i End With '**** Do something here with the array Exit_FindMySheets: Exit Sub Err_FindMySheets: Call ErrHandler() Resume Exit_FindMySheets End Sub
-
WSFlyerMike
AskWoody LoungerIf my not-so-vivid imagination, your warning form was going to stay open for a very brief period and then close itself….or get closed when the terminating routine is called.
Elsewhere, like maybe embedded in your MainMenu, switchboard, etc. is a ShutdownIfUserIsLazy routine that is called periodically. It checks to see how long your user has been latent. If the inactivity period exceeds your tolerance, the ShutdownIfUserIsLazy closes the application.
Whenever a user does something, like makes a form dirty (edits data), the LASTACTION will need to be updated.
Public Const WARNINGTIME as Integer = 55 Public Const HASTALAVISTA as Integer = 60 Public LASTACTION as Date Public Sub UpdateMyTimer() LASTACTION = VBA.Now() End Sub Public Sub ShutdownIfUserIsLazy () On Error goto Err_ShutdownIfUserIsLazy Dim dtLatency as Date dtLatency = VBA.DateDiff("n", VBA.Now(), LASTACTION) if dtLatency = WARNINGTIME then Call ShowWarning() if dtLatency >= HASTALAVISTA then DoCmd.Quit Exit_ShutdownIfUserIsLazy : Exit Sub Err_ShutdownIfUserIsLazy : Call ErrHandler(.....) Resume Exit_ShutdownIfUserIsLazy End Sub
-
WSFlyerMike
AskWoody LoungerOr
DoCmd.Quit Options:=acQuitSaveNone
Either way, the cat is skinned.
-
WSFlyerMike
AskWoody LoungerHow do you intend to display your warning message? If you are intending to use a MsgBox call, please don’t. Your code will tend to be interrupted until the user clicks OK to close the message box.
You are better off displaying a form with the message appearing on it.
Any particular reason that a user would be saving things when closing out of the application? In general my users don’t save any objects in my applications. The only changes they make to forms are modifications to filters. Typically those don’t need to be saved.
-
WSFlyerMike
AskWoody LoungerWhen I select “show comment” from the context menu, I am able to edit Comment 2…as opposed to selecting Edit Comment from the context menu…
Odd problem.
-
WSFlyerMike
AskWoody LoungerFor future consideration, and I realize nobody asked, consider using a constant for a password.
Suppose my password for protecting 20 of my 24 worksheets is “w1dget”. Rather than search and replace “w1dget” in code, I put the following in a module’s general declaration:
Public Const IGNOREME as String = "w1dget"
Whenever I need to supply my password in code, I refer to IGNOREME instead. Whenever the password is changed, I only need to change this one line in the declarations area, instead searching and replacing.
Your choice of a decent constant name will no doubt be better.
-
WSFlyerMike
AskWoody LoungerWhy are you re-sizing text boxes? As an alternative have you set the CanGrow property to Yes?
![]() |
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
-
Two blank icons
by
CR2
4 hours, 21 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
6 hours, 46 minutes ago -
End of 10
by
Alex5723
9 hours, 26 minutes ago -
End Of 10 : Move to Linux
by
Alex5723
9 hours, 55 minutes ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
6 hours, 24 minutes ago -
test post
by
gtd12345
15 hours, 27 minutes ago -
Privacy and the Real ID
by
Susan Bradley
5 hours, 34 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
6 hours, 24 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
19 hours, 48 minutes ago -
Upgrading from Win 10
by
WSjcgc50
7 hours, 13 minutes ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
14 hours, 54 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
1 day, 11 hours ago -
The story of Windows Longhorn
by
Cybertooth
23 hours, 12 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
1 day, 13 hours ago -
Are manuals extinct?
by
Susan Bradley
54 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
1 day, 22 hours ago -
Network Issue
by
Casey H
1 day, 9 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
2 days, 10 hours ago -
May 2025 Office non-Security updates
by
PKCano
2 days, 11 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
2 days, 12 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
1 day, 13 hours ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
2 days, 15 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
2 days, 15 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
2 days, 22 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 day, 14 hours ago -
Asking Again here (New User and Fast change only backups)
by
thymej
3 days, 9 hours ago -
How much I spent on the Mac mini
by
Will Fastie
17 hours, 16 minutes ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
1 day, 12 hours ago -
Spring cleanup — 2025
by
Deanna McElveen
3 days, 15 hours ago -
Setting up Windows 11
by
Susan Bradley
2 days, 10 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.