-
WSR. Hicks
AskWoody LoungerLMAO … Can I borrow … $324.00 ??
I promise to repay it next Tuesday … LOLRDH
-
WSR. Hicks
AskWoody LoungerLMAO … Can I borrow … $324.00 ??
I promise to repay it next Tuesday … LOLRDH
-
WSR. Hicks
AskWoody LoungerThanks for the information …
I always thought that it was one computer one license as you have posted .. but someone tried to tell me different.
I was just curious. I knew that it was legal to intall Office on your desktop machine and also on your laptop .. as long as the laptop is for your exclusive use.Again … Thanks.
RDH -
WSR. Hicks
AskWoody LoungerThanks for the information …
I always thought that it was one computer one license as you have posted .. but someone tried to tell me different.
I was just curious. I knew that it was legal to intall Office on your desktop machine and also on your laptop .. as long as the laptop is for your exclusive use.Again … Thanks.
RDH -
WSR. Hicks
AskWoody LoungerTry this user defined function:
Public Function fGetAgeAsOf(dtDOB As Variant, dtAsOf As Variant) As Integer Dim dtBDay As Date If Not IsDate(dtDOB) Or Not IsDate(dtAsOf) Then Exit Function dtBDay = DateSerial(Year(dtAsOf), Month(dtDOB), Day(dtDOB)) fGetAgeAsOf = DateDiff("yyyy", dtDOB, dtAsOf) + (dtBDay > dtAsOf) End Function
HTH
RDH -
WSR. Hicks
AskWoody LoungerTry this user defined function:
Public Function fGetAgeAsOf(dtDOB As Variant, dtAsOf As Variant) As Integer Dim dtBDay As Date If Not IsDate(dtDOB) Or Not IsDate(dtAsOf) Then Exit Function dtBDay = DateSerial(Year(dtAsOf), Month(dtDOB), Day(dtDOB)) fGetAgeAsOf = DateDiff("yyyy", dtDOB, dtAsOf) + (dtBDay > dtAsOf) End Function
HTH
RDH -
WSR. Hicks
AskWoody LoungerThat’s an old FAQ at Tek Tips that I posted a long time ago.
You can also find information on this at the location below.
Animation with Animated GIF’s in Access
HTH
RDH -
WSR. Hicks
AskWoody LoungerIf all you need is the elapsed hours between two Date/Time values … then all you need is to use is the DateDiff() Function:
DateDiff(“h”, [YourStartValue], [YourEndValue])
HTH
RDH -
WSR. Hicks
AskWoody LoungerOctober 25, 2002 at 2:02 am in reply to: Reset AllowByPassKey property back to True (A2K/A2K2) #626599The ShiftKey property can be set via a remote database.
Go to the location below and download a Utility that will do what you need.
HTH
RDH -
WSR. Hicks
AskWoody LoungerThis user defined function should give you the results you are after.
Function fGetAgeYMD(DOB As Variant) As String Dim intYears As Integer, intMonths As Integer, intDays As Integer Dim strTmp As String If Not IsDate(DOB) Then Exit Function intMonths = Int(DateDiff("m", DOB, Date)) intYears = Int(intMonths / 12) intDays = DateDiff("d", DateAdd("m", intMonths, DOB), Date) intMonths = Int(intMonths Mod 12) If intDays < 0 Then intMonths = intMonths - 1 intDays = DateDiff("d", DateAdd("m", -1, Date) - intDays, Date) End If If intMonths < 0 Then intYears = intYears + intMonths intMonths = 12 + intMonths End If If intYears = 1 Then strTmp = intYears & " Year " Else strTmp = intYears & " Years " End If If intMonths = 1 Then strTmp = strTmp & intMonths & " Month " Else strTmp = strTmp & intMonths & " Months " End If If intDays = 1 Then strTmp = strTmp & intDays & " Day " Else strTmp = strTmp & intDays & " Days " End If fGetAgeYMD = strTmp End Function
HTH
RDH -
WSR. Hicks
AskWoody LoungerHere is one way to do this:
First set the “Key Preview” property of the form to Yes (the default is No).
Now place the following in the “On Key Down” event of the form:
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer) Dim intAltDown As Integer intAltDown = (Shift And acAltMask) > 0 Select Case KeyCode Case vbKeyS If intAltDown Then Me.YourControlName.SetFocus End If End Select End Sub
“YourControlName” should be the name of the control you want to receive focus when the key combination is executed.
You can add more Alt+Key combinations to the Case Select statement as needed to do what you ask.HTH
RDH -
WSR. Hicks
AskWoody LoungerMod 2 …. means divide the number by 2 and only return the remainder.
So if you think about it …. any whole number that can be divided by 2 equally with no remainder is an “Even” number. The rest will be “Odd”.
Hope this explains what the expression does.
RDH
-
WSR. Hicks
AskWoody LoungerA simpler way would be to use the Update Query. In the “Update To” section of the field you want the “A” or “B” …. use the following example:
IIf([YourNumber] Mod 2=0,”B”,”A”)
“YourNumber” should be the name of the field that contains the numbers to evaluate as Odd or Even.
HTH
RDH -
WSR. Hicks
AskWoody LoungerIf you use a listbox to “multi-select” criteria for your report, you can not simply reference the list box from the query to retrieve the criteria.
You have to use code to “Loop” through the selections to dynamically create the “Where” argument to be used with the DoCmd.OpenReport method.
First set your lstbox to multi select property to Simple or Extended (depending on what you want, I use Simple most of the time). Leave the Control Source property for this lstbox empty (unbound).
Now to get the multi select values
-
WSR. Hicks
AskWoody LoungerAdd a Date/Time field to the table. Include the newly added field to the recorset query the form is bound to. Add a new txbox control on your form and set the Control Source of the txbox to the newly added field. You can set the “Visible” property to False to hide the control from view.
Use the form’s “On Before Update” event to populate this new hidden txtbox.
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me.YourControlName = Now()
End Sub(change “YourControlName ” to the name of the hidden txtbox)
The “Before Update” event of the form only fires if you are currently on a “New Record” or if an “Existing Record” is altered.
HTH
RDH
![]() |
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
-
Defunct domain for Microsoft account
by
CWBillow
3 hours, 35 minutes ago -
24H2??
by
CWBillow
10 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
54 minutes ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
7 hours, 8 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
34 minutes ago -
two pages side by side land scape
by
marc
1 day, 13 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
1 day, 16 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
18 hours, 55 minutes ago -
Security Essentials or Defender?
by
MalcolmP
21 hours, 39 minutes ago -
April 2025 updates out
by
Susan Bradley
4 hours, 14 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
15 hours, 1 minute ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
5 hours, 6 minutes ago -
Creating an Index in Word 365
by
CWBillow
1 day, 7 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
23 hours, 5 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
2 days, 11 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
2 days, 14 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
2 days, 16 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
2 days, 14 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
2 days, 7 hours ago -
I installed Windows 11 24H2
by
Will Fastie
13 hours, 57 minutes ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
2 days, 19 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
1 hour, 8 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
3 days, 4 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
2 days, 12 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
2 days, 12 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
3 days, 21 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
4 days, 5 hours ago -
Slow Down in Windows 10 performance after March 2025 updates ??
by
arbrich
5 hours, 6 minutes ago -
Mail from certain domains not delivered to my outlook.com address
by
pumphouse
3 days, 14 hours ago -
Is data that is in OneDrive also taking up space on my computer?
by
WShollis1818
4 days 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.