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 
Last Order Placed
Austin Ritner 
    
5 years ago
How do I put a text field on the CustomerT showing when the customer ordered something last based on the OrderT? I think I'm close with either a DMax or DLOOKUP but i keep getting errors.
Austin Ritner OP  @Reply  
    
5 years ago
Meant to say CustomerF**
Scott Axton  @Reply  
        
5 years ago
What do you have so far?
What are your errors?
Adam Schwanz  @Reply  
           
5 years ago
You could use a totals query too to get the results. With criteria of the Forms!CustomerF!CustomerID on the form and using Max for the date field. Then you could change it into SQL view, copy the statement, and put it as the control source for that field on your form

Adam Schwanz  @Reply  
           
5 years ago
Otherwise, DMax should work but harder to explain without knowing field names.
Austin Ritner OP  @Reply  
    
5 years ago
Fields would be LastOrderDate on CustomerF and OrderDate on the OrderT. Haven't done much with DMax so just looking for a little clarification.
Adam Schwanz  @Reply  
           
5 years ago
DMAX("OrderDate","OrderT","CustomerID=" & CustomerID)

I'm not sure what you have for the table name CustomerID or the form field name CustomerID, so you'll need to change those.
Austin Ritner OP  @Reply  
    
5 years ago
Ah! I was forgetting the concatenated "& CustomerID". Thanks
Richard Rost  @Reply  
          
5 years ago
Adam FTW

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/2/2026 8:54:38 AM. PLT: 0s