Computer Learning Zone CLZ Access Excel Word Windows

To be scientifically literate is to empower yourself to know when someone else is full of shit.

-Neil deGrasse Tyson
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Visitor Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Getting Last Next Dates
Jim Cornwell 

2 years ago
I have a job sheet, report, 5 lines per customer(Name, Add, etc.)
I have Last & Next Date fields, being scheduled job dates.
How do I get these dates into the detail line of my report?
Table ScheduleDates has RefNum(Customer) and SchedNum Key with the dates for the schedules ie 15/04, 12/05, 10/05.
If rundate is 12/05 then last 15/04, next 10/05.
I can get a query to return the result i want but cant get it into a form. I believe it should be simple.
But Ive been at it for months.
Please help, Im on the verge of tears, not a good look for 59 yo man.

Kevin Robertson  @Reply  
          
2 years ago
Set the Record Source to the name of your Query. Then Add Existing Fields to add the fields to your Form/Report.
Jim Cornwell OP  @Reply  

2 years ago
Thanks for that, thats what to do but how do I do it?
Each detail line of the report has a different Customer, Schedule,
different dates.
How do I connect them? Of course 10/05 SHB 10/06, sorry.
My query, for last date, is
SELECT Max([Schedule_Dates].[JobDate]) AS LastJobDate
FROM Schedule_Dates
WHERE (Schedule_Dates.RefNum)=[Reports]![PrRunSheet].[RefNum]) AND (Schedule_Dates.SchedNum)=[Reports]![PrRunSheet].[SchedNum]) AND (Schedule_Dates.JobDate)<[Reports]![PrRunSheet].[RunDate])
ORDER BY Max([Schedule_Dates].[JobDate])


TextBox has no query connect.
SubReport while shows the query, shows no field.
I dont think I can do it in the main report query as each customer has different dates.
Maybe I do need to look there, have another date table for each of last and next, baybe it cant do at run time?
Many Thanks.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Visitor 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: 6/21/2026 6:20:48 AM. PLT: 0s