-
WSBCKessinger
AskWoody LoungerProblem Solved. Since I am using Now() to fill in the date/time field as to when a job is started/completed, At the same time I use the Time() function to determine my shift. Will only vary a few tenths of a second at the most which is not critical.
-
WSBCKessinger
AskWoody LoungerLet me try to clarify what I’m trying to do. I am keeping track of computer jobs with a start date/time and a completed date/time. The date/time field is in general format. As part of the statistics I am gathering, I also need to determine what shift the job was started and what shift the job was completed, ergo, I need to extract the time portion of the date/time field to determine the shift, eg, 7:00am – 3:00pm = shift1, 3:00pm – 11:00pm = shift2, 11:00pm – 7:am = shift 3. HTH.
-
WSBCKessinger
AskWoody LoungerPrincess: Your code probably should read:
If IsNull(me![tnum]) then ….
HTH.
-
WSBCKessinger
AskWoody LoungerMarkus: Try this:
Month: Format([InvoiceDate];”yyyy-mmm”)
-
WSBCKessinger
AskWoody LoungerPeter: Not knowing all the intricacies of your situation, a starting point might be to use th MAX function on the date/time field. This will give you the latest date. Or you could sort all your dates in descending order to give you the latest first. HTH.
-
WSBCKessinger
AskWoody LoungerLonnie: Try this. Assume the name of the Command button is btnCommand.
Private Sub btnCommand_Click()
On Error GoTo btnCommand_ErrorIf btnCommand.Caption = “Open Form” Then
DoCmd.OpenForm (formname)
btnCommand.Caption = “Close Form”
Else
DoCmd.Close
btnCommand.Caption = “Open Form”
End IfExit Sub
btnCommand_Error:
MsgBox Err.Description
Exit SubEnd Sub
HTH.
-
WSBCKessinger
AskWoody LoungerDan: I use this calculation to sum times:
In the Control Source property:
=Int(Sum([timefield]))*24 + DatePart(“h”,Sum([timefield])) & “:” & DatePart(“n”,Sum([timefield]))
-
WSBCKessinger
AskWoody LoungerYo Arage: Apart from the naming conventions, each query type has a small icon to differentiate it from another.
Back to the LNC, there are specific naming conventions for each type of query (13 according to LNC) and for all the other type of objects one can have in a database. These are all listed in the LNC book.
Also, this URL should give you what you want. It looks like it is a copy of what is in the LNC book.
http://www.mvps.org/access/general/gen0012.htm
HTH.
-
WSBCKessinger
AskWoody LoungerIt seems strange that one could run out of room in the detail section, unless you have an extremely large number of controls. Assuming that is not the case, try making your detail section multiple lines, i.e., putting controls on multiple lines.
-
WSBCKessinger
AskWoody LoungerHi: FMS, Inc. has a tool called Total Access Sourcebook which has code for these type problems. The cost is aprox. $150. There is a function to calculate the difference in business days, eliminating Sat, Sun, and Holidays.
-
WSBCKessinger
AskWoody LoungerThanks for your insights and thoughts on this. You have been very helpful.
-
WSBCKessinger
AskWoody LoungerCharlotte: Thank you for your reply. I was thinking along the lines of a prospective student to take to see in which to enroll.
-
WSBCKessinger
AskWoody LoungerDebi: In your QBE grid place the results field and do a ‘Group By’ on it. Place the results field in the QBE grid a 2nd time and do a ‘count’ on it. I think this will give you the desired results.
-
WSBCKessinger
AskWoody LoungerLook into using Left, Mid, and Right functions
-
WSBCKessinger
AskWoody LoungerJason: I used this to separate a name field into first and last. Format of [name] is [first last]. You might be able to modify it for your use. Hint: Always keep names separate in your DB. Much easier to work with title, first, mi, last. HTH.
SELECT tbl_Names.Name, InStr([Name],” “) AS [Temp Name], Left([Name],[Temp Name]-1) AS [First Name], Mid([Name],[Temp Name]+1) AS [Last Name] INTO tbl_Split_Names
FROM tbl_Names;
![]() |
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
-
Oracle kinda-sorta tells customers it was pwned
by
Nibbled To Death By Ducks
4 hours, 56 minutes ago -
Global data centers (AI) are driving a big increase in electricity demand
by
Kathy Stevens
15 hours, 16 minutes ago -
Office apps read-only for family members
by
b
17 hours, 52 minutes ago -
Defunct domain for Microsoft account
by
CWBillow
14 hours, 44 minutes ago -
24H2??
by
CWBillow
4 hours, 55 minutes ago -
W11 23H2 April Updates threw ‘class not registered’
by
WindowsPersister
1 day, 2 hours ago -
Master patch listing for April 8th, 2025
by
Susan Bradley
2 hours, 47 minutes ago -
TotalAV safety warning popup
by
Theodore Nicholson
14 hours, 40 minutes ago -
two pages side by side land scape
by
marc
2 days, 15 hours ago -
Deleting obsolete OneNote notebooks
by
afillat
2 days, 17 hours ago -
Word/Outlook 2024 vs Dragon Professional 16
by
Kathy Stevens
1 day, 20 hours ago -
Security Essentials or Defender?
by
MalcolmP
1 day, 23 hours ago -
April 2025 updates out
by
Susan Bradley
4 hours, 23 minutes ago -
Framework to stop selling some PCs in the US due to new tariffs
by
Alex5723
1 day, 16 hours ago -
WARNING about Nvidia driver version 572.83 and 4000/5000 series cards
by
Bob99
1 day, 6 hours ago -
Creating an Index in Word 365
by
CWBillow
2 days, 9 hours ago -
Coming at Word 365 and Table of Contents
by
CWBillow
21 hours, 24 minutes ago -
Windows 11 Insider Preview Build 22635.5170 (23H2) released to BETA
by
joep517
3 days, 12 hours ago -
Has the Microsoft Account Sharing Problem Been Fixed?
by
jknauth
3 days, 16 hours ago -
W11 24H2 – Susan Bradley
by
G Pickerell
3 days, 18 hours ago -
7 tips to get the most out of Windows 11
by
Alex5723
3 days, 16 hours ago -
Using Office apps with non-Microsoft cloud services
by
Peter Deegan
3 days, 9 hours ago -
I installed Windows 11 24H2
by
Will Fastie
1 day, 15 hours ago -
NotifyIcons — Put that System tray to work!
by
Deanna McElveen
3 days, 21 hours ago -
Decisions to be made before moving to Windows 11
by
Susan Bradley
14 hours, 49 minutes ago -
Port of Seattle says ransomware breach impacts 90,000 people
by
Nibbled To Death By Ducks
4 days, 5 hours ago -
Looking for personal finance software with budgeting capabilities
by
cellsee6
3 days, 13 hours ago -
ATT/Yahoo Secure Mail Key
by
Lil88reb
3 days, 14 hours ago -
Devices with apps using sprotect.sys driver might stop responding
by
Alex5723
4 days, 22 hours ago -
Neowin – 20 times computers embarrassed themselves with public BSODs and goofups
by
EP
5 days, 7 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.