5 hours ago: Our file storage provider is running maintenance today. If any videos don't load, wait a minute, refresh the page, and try again. Sorry for any inconvenience.  Dismiss
Computer Learning Zone CLZ Access Excel Word Windows

Practically every food you buy in a store for consumption by humans is genetically modified food. There are no wild, seedless watermelons. There's no wild cows.

-Neil deGrasse Tyson
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
Home > TechHelp > Access >
Back to TechHelp    Comments List
Filtering to a form Upload Images   Link   Email  
Maarten Brusselers      
18 months ago
I have a query to show me in a form what quantities of what salad went where. In my form I have 3 quantity fields, P(lanting)qty, N(ursery)qty and G(rowth)qty. What I want to do is have only 1 quantity field in my form so that when the StageID is 1, the quantity field shows the Pqty, if it is 2 it shows the Nqty and if it is 3 it shows the Gqty. I have been trying it with IIf functions in my query but cant' get it to work.  Any advice would be much appreciated
Maarten Brusselers      
18 months ago

Maarten Brusselers      
18 months ago

Kevin Robertson            
18 months ago
There are no joins in your Query.
You say you have been trying IIF functions. You haven't shown us what you have tried.
Maarten Brusselers      
18 months ago
Thanks Kevin.
I noticed that after I sent it but everything worked anyway. I now made the joins but this made no difference.  It's evening here now.  Will try the IIf functions again tomorrow and show you
Maarten Brusselers      
18 months ago
Hi Kevin, got it to work.  As usual a spelling mistake.  That happens to me lot.  Thanks for the response
Maarten Brusselers      
18 months ago
I got it to work but not really in the way it should, although the result is correct.
This is what I did: Quantity: IIf([StageID]=1,[Pquantity],IIf([StageID]=2,[NQuantity],[Gquantity]))
The 1, 2 and 3 are the different stages and by defining them in the IIF function they work.  However, for proper database design  I think they should take the value from the form and assign the proper quantity directly, without me inserting numerical values.
The form value is Forms]![LotToTableF]![StageID].  I have no idea how to do this.
Maarten Brusselers      
18 months ago

This thread is now CLOSED. If you wish to comment, start a NEW discussion in TechHelp.


The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.

Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
My Account
My Courses
Lost Password
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Customer Support
Web Site Tour
Consulting Services
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

Copyright 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 7/14/2024 11:21:39 AM. PLT: 0s