-
WSIndyAries
AskWoody LoungerGreetings,
Here is the format in Excel. I want to accomplish the same in Access. I’m using Access 97 SR2.
The “All Lines” sheet contains all of the applicable information. The “Summary” sheet is the summary for all Organizations.
The data here is for one month. As more months are added, the Year-To-Date will change accordingly. I will be tracking Month-To-Date and Year-To-Date numbers.
Would it be easier to try and show these based on a query or queries rather than an unbound form/report?
Thanking one and all for their assistance.
Bob in Indy.
-
WSIndyAries
AskWoody LoungerHans, would it be better if I sent the Excel 97 spreadsheet showing what I’m trying to accomplish in Access? If so, I would want to send it directly to you, rather than post it here on the internet.
-
WSIndyAries
AskWoody LoungerHi. Sorry for not replying before now. Was placed on another project.
The information comes from an Excel worksheet. I’m taking the total hours worked month-to-date and year-to-date, and calculating the percentage of overtime worked by each department.
Table layout is flat-file.
Below is an example of the hours I’m tracking for 1 of 26 divisions. The ALPHA column contains the Type-Hour codes. Any code beginning with the letter O denotes overtime.
Type Civ Hrs Mil Hrs Tot Civ Tot OT %
Hr Cd MTD MTD Hrs OT HrsCD 9.00 0.00
CN 4.50 0.00
CT 27.50 0.00
LH 16.00 0.00
LS 3.50 0.00
RG 311.25 0.00
CD 35.75 0.00
CN 64.00 0.00
CT 9.00 0.00
LA 108.00 0.00
LH 80.00 0.00
LS 92.00 0.00
OS 2.00 0.00
RG 1,524.25 0.00 2,286.75 2.00 0.09%I would like to;
1. Using an unbound form, perform a calculation. I need to calculate the percentage of overtime used in a particular work area. There are 26 different work areas. The only distinct item of data that indicates overtime is in a field called Type Hr Cd. All overtime begins with the letter O.
2. I would also like to perform this calculation within a query and also in a bound report.
Can I use a DSUM expression to perform calculations within an unbound form? Not only will I be tracking month-to-date, but also year-to-date.
Thanks in advance !!
Bob in Indy
PS: Hmmm…..the columns of info didn’t post correctly.
-
WSIndyAries
AskWoody LoungerThomas, right after I posted my reply to your answer, I began playing with your SQL. I made it happen. Here it is, and it works like a charm!! Thanks again!!
UPDATE t_DIX_Bak SET t_DIX_Bak.MANHRS = Left([MANHRS],3) & “”, t_DIX_Bak.BK4 = Left([BK4],0) & “”
WHERE (((t_DIX_Bak.BK4) Is Not Null)); -
WSIndyAries
AskWoody LoungerThomas, your SQL worked like a charm !!!!! Thank you !!
Do you have any ideas pertaining to my second question? Wondering if I can somehow modify your SQL to delete or clear whole fields or parts of fields?
![]() |
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
-
Practice what you preach! A cautionary tale.
by
RetiredGeek
2 hours, 20 minutes ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
11 hours, 17 minutes ago -
Win 11 24H2 Home or Pro?
by
CWBillow
10 hours, 14 minutes ago -
Bipartisan Effort to Sunset the ‘26 Words That Created the Internet’..
by
Alex5723
19 hours, 44 minutes ago -
Outlook new and edge do not load
by
cHJARLES a pECKHAM
1 day, 7 hours ago -
Problem using exfat drives for backup
by
Danmc
1 day, 7 hours ago -
I hate that AI is on every computer we have!
by
1bumthumb
9 hours, 57 minutes ago -
Change Info in the Settings window
by
CWBillow
1 day, 14 hours ago -
Attestation readiness verifier for TPM reliability
by
Alex5723
1 day, 21 hours ago -
Windows Update says that “some settings are managed b your organization”
by
Ed Willers
1 day, 6 hours ago -
Use of Gmail rejected.
by
CBFPD-Chief115
1 day, 7 hours ago -
WuMgr operational questions
by
Tex265
9 hours, 16 minutes ago -
Beijing’s unprecedented half-marathon: Humans vs. humanoids!
by
Alex5723
2 days, 12 hours ago -
New Phishing Campaign Targeted at Mac Users
by
Alex5723
1 day, 12 hours ago -
Backing up Google Calendar
by
CWBillow
2 days, 18 hours ago -
Windows 11 Insider Preview build 27818 released to Canary
by
joep517
3 days, 7 hours ago -
File Naming Conventions (including Folders)
by
Magic66
2 days, 6 hours ago -
Windows 11 Insider Preview Build 26100.3613 (24H2) released to Release Preview
by
joep517
3 days, 14 hours ago -
Microsoft sends emails to Windows 10 users about EOS
by
Alex5723
3 days, 1 hour ago -
Outlook 2024 importing Calendar and Contacts – FAILURE
by
Kathy Stevens
2 days, 7 hours ago -
Adding Microsoft Account.
by
DaveBRenn
3 days, 16 hours ago -
Windows 11 Insider Preview build 26120.3576 released to DEV and BETA
by
joep517
4 days, 15 hours ago -
Windows 11 Insider Preview Build 22635.5090 (23H2) released to BETA
by
joep517
4 days, 16 hours ago -
Windows 11 won’t boot
by
goducks25
2 days, 8 hours ago -
Choosing virtual machine product for Windows on Mac
by
peterb
4 days, 6 hours ago -
Rest in Peace
by
Roy Lasris
5 days, 10 hours ago -
CISA : Install Windows March 2025 Updates until April 1 or shut down PC.
by
Alex5723
2 days, 8 hours ago -
Google proposes users with incompatible Win 11 PCs to migrate to ChromeOS Flex
by
Alex5723
5 days, 11 hours ago -
Drivers for Epson Perfection V600 Photo – scanner
by
Bookman
2 days, 2 hours ago -
Long Time Member
by
jackpet
5 days, 13 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.