Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   TechHelp   Help   Contact   Merch   Join   Order   Logon   Forums   
 
Back to Access Forum    Comments List
Upload Images | @Reply | Bookmark | Link | Email | Next Unseen |
Name error using a query on a Textbox on a Form
Julie Bennett 
     
20 months ago
I have a Textbox on my Menu form.  I want to display the next due date [NextRecurring] from a list of recurring payments.  I keep getting a #Name error.  I have set the Control Source for the TextBox to the Query (MenuRecurDateQ).  The query works fine, but the Textbox won't recognize it.  Here is the query SQL: SELECT Min(RecurringT.NextRecurring) AS txtNextRecurring
FROM RecurringT
GROUP BY RecurringT.IsActive
HAVING (((RecurringT.IsActive)=True))
ORDER BY Min(RecurringT.NextRecurring);
Am I using the wrong type of Control?  Is there a better way in VBA?  I want the date to refresh on Load of the Menu form.
Julie Bennett OP  @Reply  
     
20 months ago

Adam Schwanz  @Reply  
           
20 months ago
Do you mean you set the control source to a select statement? You need to use a domain function like DLOOKUP to lookup the value on that query. DLookup
Julie Bennett OP  @Reply  
     
20 months ago
Thanks Adam.  I tried everything but DLookup. Sometimes Access is too complicated for it's own good, LOL :)

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

Next Unseen

 
 
What's This?

 

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: 9/29/2026 9:02:49 PM. PLT: 0s