Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Query from within a form
Reuven 

13 years ago
I have:
- A table "Clients"
- A "Charges and Payments" table with payments linked many to 1 to the Clients table

In the Student table I have a field "Zero Balance Date" meaning that when I check the balance per student I start summing up from that date, ignoring everything before that date.

I created a query that receives as a parameter the client number and returns that balance. It works fine.

I have a form in which I show all of a single client's data, with a subform showing the payments and charges.

I want to show the result of the above query in a box in that form. I created a text box and now I want to fill it.

I thought of two ways to do it:
- call the query and feed it with the client number parameter automatically. IS IT POSSIBLE AND HOW DO I DO IT?
OR
- Write the query in the textbox data itself as an expression. HOW DO I DO THAT. I ONLY KNOW VERY BASIC SQL.



Reply from Richard Rost:

Yes, both of these options are possible. You can use a text box as a parameter for a query as I show in THIS tip, or you could write and SQL statement for the query as I cover in my SQL seminar.

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

Next Unseen

 
New Feature: Comment Live View
 
 

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 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/17/2026 8:03:29 PM. PLT: 0s