Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Access
Back to Access Forum    Comments List
Auto Populate Upload Images   Link   Email  
David Clement       
2 months ago
Hello Richard.
I have created a Datebase that works and looks much like a world known shipping company's database. Mostly to see if I could do it or not. It all works as it should but keeping in mind that it can not on its own generate things like the going shipping rates, matching zip codes to their addesses and so on automatically. Right now, that is not a concern. What I need is to be reminded of how to do Auto Populate the Customers name and address after typing in their Customer ID which is in the CustomerT table. Just like the the well known shipping company.
Can you please help?
Thank you.
David Clement       
2 months ago

David Clement       
2 months ago

David Clement       
2 months ago

John Davy           
2 months ago
Hi David
As with many things in Access, there are several ways to tackle this. One way would be to create a combo box on the ID to select the customerid. At that time you could pick up the other info that you need in the same selection. (you have the id therefore you also know the customer name, address etc. Use that to populate the fields.)
Another way would be to use TempVars and do essentially the same thing. Also, take a look at Richards Invoicing Template, for I think he adds the shipping address to the invoice.
HTH
John


Kevin Robertson            
2 months ago
David Clement       
2 months ago
I think I am still confused about setting this Database up. I have tried using the CustomerID to Auto Populate my form, and it works, but I get the ENTIRE record, not just the Customer Information that I want. Is there a way to do this? I appreciate any help on this.
Thank you!
David Clement       
2 months ago

David Clement       
2 months ago
Do I have to write VB code for each of the fields to do this? DLookUp, AfterUpdate/DLookup?
David Clement       
2 months ago

Adam Schwanz             
2 months ago
Yes you could DLOOKUP all the values to fill in. I would probably use a record set instead because it'll probably run faster. With the afterupdate event
Adam Schwanz             
2 months ago
Dim RS As Recordset
Set RS=CurrentDb.OpenRecordset("Select * From CustomerT Where CustomerID=" & CustomerIDFieldName)

Company=rs!Company
Attention=rs!Attention
Address1=rs!Address1
Address2=rs!Address2
'etc

rs.close
set rs=nothing

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

 
 
 

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 2024 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/21/2024 6:22:38 PM. PLT: 0s