Hello Access Gurus,
Is there a way I can create an array formula in Access. I know it’s possible in Excel using the Ctrl+Shft+Enter but what about Access?
Thanks a bunch!!
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Access Formula (Access2000)
I have a table called “employment category” with column names PT, FT, VP, FP, UV, Dept#. I would like to create a formula called “fulltime employees” that will give me a sum of all FT and FP for a selected dept number.
such as: {=SUM(IF(dept#=7865,FT+FP,0))}
Please let me know if this example is confusing.
Thanks!
You’re confusing yourself. Even though an Access table *looks* much like an Excel spreadsheet, it is entirely different. Rows in Access tables are independent, not inherently ordered as in a spreadsheet, and an “array formula” is meaningless in an Access context.
First of all, you can’t base table fields on values in other fields. Second, You don’t store totals in a record. You need to get familiar with queries, which is where you would total up information like that when you need it, but you wouldn’t actually store those totals anywhere.
Charlotte , Thanks
I agree you can’t use dsum in a table but then you woudn’t want to.
The question didn’t imply that. It just wanted a total, I assumed it would be in a control in a form.
NCordero
It is so easy to misunderstand what people really want. Starting to use Access is a tremendous leap from Excel and it takes quite a time to acquire the different way of looking at things. In Excel there is really only a cell to put things in. In Access they can be put in a table, a form or a report and you really have to understand the different purposes of each.
I hope you let us know if we gave you anything useful.
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.
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.
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.
Notifications