Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > TechHelp > Directory > Access > Project Budgets < Find Record Combo | Weekday >
Back to Project Budgets    Comments List
Upload Images   Link   Email  
Query Within Query
Juan C Rivera 
           
3 years ago
Good morning all trying to see if there is a help video on this.  So let me try to see if I can talk this one.  I make a query (agregate) and make a second query to do the calculation.  I like to get all this in one form to execute on one button.  When I think I got it, I deleate the query only to find that the query in the form is looking for the agregate query.  How can I get his done so I dont have the 2 querys just the SQL?  Not going to ask if it can be done Richard probably will put out di-lithium crystals and blast it with a phaser and make a new function..  LOL

V/r
Juan
LLNP
Kevin Robertson 
           
3 years ago
Juan,

Since this is a long SQL statement and from the extended cut I won't post all that code here, but this is how to do it.

If you take the calculation from the second query and put it in the aggregate as an Expression.
Then go to SQL view. This is what you need in the RecordSource of the form (copy and paste).
Now both Queries can be deleted (make sure everything is working first).
Juan C Rivera OP 
           
3 years ago
Thanks Kevin I will try tonight last night it drove me crazy when I removed the 1st query and could not figure out what happened.... LOL senior moment!
Richard Rost 
           
3 years ago
You can always post stuff like that in the TechHelp Members Only Forum. But yeah, that would be a long statement. LOL.

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

 
 
 

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

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

LinkedIn
Copyright 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 2/15/2025 2:42:28 PM. PLT: 1s