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 
Access 2007 Form Autopopulate 2nd field based on
Paul 

15 years ago
Hi

I have a Customers table in Access 2007 with name and address fields, which contains a Town combox box that looks up a value [Town] in a separate Town table.

I created a simple Customer Form in order to easily populate the Customer table.

My Town table contains three columns:

1.  CustomerID - autonumber
2.  Town - text
3.  County - text

The Town and County fields are all populated.

What I would like is that when a town is selected from the drop down combo 'Town' box, the corresponding County field autopopulates into a text box underneath.

I have managed to almost achieve this by having a County combo box and setting the properties Row Source to read:

SELECT [TownT].[ID], [TownT].[County] FROM TownT;

this automatically brings back the County field of the chosen Town field - but the box itself has a drop down arrow and it lists multiple counties [as there are many towns that have the same county].

I have set the Locked status to 'yes' stoping the user from selecting a different county - but this looks messy.

I just want a static text box showing the right county that the town belongs to.

I have looked all over the net and all I seem to find are solutions using VB codes - but I have no idea how VB works so wonder if there is another, more simple, solution.

Thanks

Paul



Reply from Richard Rost:

What you need is a little bit of programming: an AfterUpdate event. After you select the value for your town, the box can then set other values on your form. See this tutorial for help on AfterUpdate events.

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: 7/29/2026 10:34:46 PM. PLT: 0s