-
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
![]() |
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
-
KB5061768 update for Intel vPro processor
by
drmark
1 hour, 5 minutes ago -
Outlook 365 classic has exhausted all shared resources
by
drmark
2 hours, 7 minutes ago -
My Simple Word 2010 Macro Is Not Working
by
mbennett555
13 hours, 8 minutes ago -
Office gets current release
by
Susan Bradley
17 hours, 51 minutes ago -
FBI: Still Using One of These Old Routers? It’s Vulnerable to Hackers
by
Alex5723
1 day, 10 hours ago -
Windows AI Local Only no NPU required!
by
RetiredGeek
18 hours, 54 minutes ago -
Stop the OneDrive defaults
by
CWBillow
1 day, 11 hours ago -
Windows 11 Insider Preview build 27868 released to Canary
by
joep517
1 day, 21 hours ago -
X Suspends Encrypted DMs
by
Alex5723
1 day, 23 hours ago -
WSJ : My Robot and Me AI generated movie
by
Alex5723
1 day, 23 hours ago -
Botnet hacks 9,000+ ASUS routers to add persistent SSH backdoor
by
Alex5723
2 days ago -
OpenAI model sabotages shutdown code
by
Cybertooth
2 days ago -
Backup and access old e-mails after company e-mail address is terminated
by
M W Leijendekker
1 day, 13 hours ago -
Enabling Secureboot
by
ITguy
1 day, 20 hours ago -
Windows hosting exposes additional bugs
by
Susan Bradley
2 days, 8 hours ago -
No more rounded corners??
by
CWBillow
2 days, 4 hours ago -
Android 15 and IPV6
by
Win7and10
1 day, 18 hours ago -
KB5058405 might fail to install with recovery error 0xc0000098 in ACPI.sys
by
Susan Bradley
2 days, 21 hours ago -
T-Mobile’s T-Life App has a “Screen Recording Tool” Turned on
by
Alex5723
2 days, 23 hours ago -
Windows 11 Insider Preview Build 26100.4202 (24H2) released to Release Preview
by
joep517
2 days, 18 hours ago -
Windows Update orchestration platform to update all software
by
Alex5723
3 days, 7 hours ago -
May preview updates
by
Susan Bradley
2 days, 18 hours ago -
Microsoft releases KB5061977 Windows 11 24H2, Server 2025 emergency out of band
by
Alex5723
2 days, 10 hours ago -
Just got this pop-up page while browsing
by
Alex5723
2 days, 23 hours ago -
KB5058379 / KB 5061768 Failures
by
crown
2 days, 20 hours ago -
Windows 10 23H2 Good to Update to ?
by
jkitc
1 day, 22 hours ago -
At last – installation of 24H2
by
Botswana12
3 days, 22 hours ago -
MS-DEFCON 4: As good as it gets
by
Susan Bradley
20 hours, 23 minutes ago -
RyTuneX optimize Windows 10/11 tool
by
Alex5723
4 days, 10 hours ago -
Can I just update from Win11 22H2 to 23H2?
by
Dave Easley
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.