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 
Autofill not working
Thomas Colley 
     
17 months ago
I am a stained glass artist, I decided to make a stained glass pricing DB. I have the QuoteF where the customer address will autofill based off the CustomerID from a Combobox. everything fills fine except the phone number. what am I missing? This is what I am using:
EmailAddress = Nz(DLookup("EmailAddress", "CustomerT", "CustomerID=" & CustomerCmb), "")
CustomerNumber = Nz(DLookup("CustomerNumber", "CustomerT", "CustomerID=" & CustomerCmb), "")
Sami Shamma  @Reply  
             
17 months ago
what is the row source of your CustomerCmb?
Alex Hedley  @Reply  
            
17 months ago
Did you want to share the code for retrieving the phone number too?
Thomas Colley OP  @Reply  
     
17 months ago
Row Source is SELECT [CustomerLFQ].[CustomerID], [CustomerLFQ].[LF] FROM CustomerLFQ ORDER BY [LF];

CustomerNumber = Nz(DLookup("CustomerNumber", "CustomerT", "CustomerID=" & CustomerCmb), "")
Thomas Colley OP  @Reply  
     
17 months ago
Good morning, Any ideas on this
Alex Hedley  @Reply  
            
17 months ago
1. Is CustomerNumber the phone number?
2. Row Source is for CustomerCmb?
Alex Hedley  @Reply  
            
17 months ago
Does SELECT CustomerNumber FROM CustomerT WHERE CustomerID = 1 return anything?
Thomas Colley OP  @Reply  
     
17 months ago
Alex, where do I put that
Thomas Colley OP  @Reply  
     
17 months ago
I figured it out, in the CustomerT i spelt CustomerNumber wrong i had it CustomerNunber everywhere else i had it spelt right. it is now working. thanks for your help.

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: 6/22/2026 1:38:22 PM. PLT: 1s