In the attached database, I would like to have the quantity on hand (On_Hand field in the On Hand query) appear on the ‘Used’ form. The quantity on hand should correspond to the description the user chooses from the Description drop down list. I can’t seem to make this work. Can anyone help me?
Thanks in advance,
Christa
![]() |
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 |
-
Using more than one table/query in a form (Access XP)
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Using more than one table/query in a form (Access XP)
- This topic has 12 replies, 3 voices, and was last updated 20 years ago.
AuthorTopicWSChrista
AskWoody LoungerMay 13, 2005 at 9:27 pm #419532Viewing 1 reply threadAuthorReplies-
WSHansV
AskWoody Lounger -
WSChrista
AskWoody Lounger -
WSChrista
AskWoody LoungerMay 16, 2005 at 6:45 pm #947999This morning I copied the formula you send into the Control source of a new text box and the quantity on hand came up…it worked perfectly!…however since then I’ve added some macros to open forms and a switchboard…and now it no longer works. I haven’t changed any of the fields that the On Hand query refers to…any ideas?
Thanks,
Christa
-
WSHansV
AskWoody Lounger -
WSChrista
AskWoody Lounger -
WSHansV
AskWoody LoungerMay 16, 2005 at 8:00 pm #948030I don’t think we can solve this without seeing the database. Could you post a stripped down copy of your database? See post 401925 for instructions.
-
WSChrista
AskWoody Lounger -
WSChrista
AskWoody LoungerMay 16, 2005 at 8:35 pm #948042I’ve figured it out…the formula works as long as there is already a record for the particular item in the Used table. If there is no record in the Used table for the item, the quantity on hand doesn’t show eventhough there is a quantity on hand in the Receipts table. I would like it to just pull the total number from the On Hand query no matter what records are in either table (Receipts or Used). Can this be done?
Thanks,
Christa
-
WSHansV
AskWoody LoungerMay 16, 2005 at 8:48 pm #948047 -
WSChrista
AskWoody Lounger -
WSHansV
AskWoody Lounger
-
-
-
-
-
WSjohnhutchison
AskWoody LoungerMay 13, 2005 at 9:49 pm #947563I think you need to refine your table structure to make this work.
Your inventory table does not have a primary key defined – There is no unique identifier of an item such as an item code or autonumber.
You should have such a field, then anywhere else in the db that you refer to an item, you refer to it by this field. So the Used table is presumably talking about inventory items used, but you have no way of knowing what was used because it uses just the Category and Description which do not clearly identify exactly which item was used. So the used table needs to include the ItemID field that you need to add to the inventory table.
You inventoryt able includes a quantity field. Does this represent quantity on hand? If not what is it? If you really need to keep using the Items used query then this needs to also include the ItemID field to identify the item.
Viewing 1 reply thread -

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
-
Windows 11 Insider Preview build 27871 released to Canary
by
joep517
13 hours, 23 minutes ago -
Windows 11 ad from Campaign Manager in Windows 10
by
Jim McKenna
10 hours, 44 minutes ago -
Small desktops
by
Susan Bradley
3 hours, 36 minutes ago -
Totally disable Bitlocker
by
CWBillow
11 hours, 45 minutes ago -
Phishers extract Millions from HMRC accounts..
by
Microfix
11 hours, 1 minute ago -
Windows 10 22H2 Update today (5 June) says up-to-date but last was 2025-04
by
Alan_uk
1 day, 17 hours ago -
Thoughts on Malwarebytes Scam Guard for Mobile?
by
opti1
29 minutes ago -
Mystical Desktop
by
CWBillow
1 day, 20 hours ago -
Meta and Yandex secretly tracked billions of Android users
by
Alex5723
1 day, 1 hour ago -
MS-DEFCON 2: Do you need that update?
by
Susan Bradley
12 hours, 34 minutes ago -
CD/DVD drive is no longer recognized
by
WSCape Sand
2 days, 11 hours ago -
Windows 11 24H2 Default Apps stuck on Edge and Adobe Photoshop
by
MikeBravo
2 days, 14 hours ago -
North Face and Cartier customer data stolen in cyber attacks
by
Alex5723
2 days, 12 hours ago -
What is wrong with simple approach?
by
WSSpoke36
10 hours, 51 minutes ago -
Microsoft-Backed Builder.ai Set for Bankruptcy After Cash Seized
by
Alex5723
3 days ago -
Location, location, location
by
Susan Bradley
1 day, 14 hours ago -
Cannot get a task to run a restore point
by
CWBillow
3 days, 1 hour ago -
Frustrating search behavior with Outlook
by
MrJimPhelps
2 days, 16 hours ago -
June 2025 Office non-Security Updates
by
PKCano
3 days, 12 hours ago -
Secure Boot Update Fails after KB5058405 Installed
by
SteveIT
1 day, 14 hours ago -
Firefox Red Panda Fun Stuff
by
Lars220
3 days, 12 hours ago -
How start headers and page numbers on page 3?
by
Davidhs
3 days, 22 hours ago -
Attack on LexisNexis Risk Solutions exposes data on 300k +
by
Nibbled To Death By Ducks
3 days, 1 hour ago -
Windows 11 Insider Preview build 26200.5622 released to DEV
by
joep517
4 days, 7 hours ago -
Windows 11 Insider Preview build 26120.4230 (24H2) released to BETA
by
joep517
4 days, 7 hours ago -
MS Excel 2019 Now Prompts to Back Up With OneDrive
by
lmacri
3 days, 21 hours ago -
Firefox 139
by
Charlie
3 days, 13 hours ago -
Who knows what?
by
Will Fastie
2 days, 16 hours ago -
My top ten underappreciated features in Office
by
Peter Deegan
18 hours, 40 minutes ago -
WAU Manager — It’s your computer, you are in charge!
by
Deanna McElveen
4 hours, 34 minutes 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.