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 
Auto Fill data in textbox from Combobox selection
Stephen 

14 years ago
Auto Fill data in textbox from Combobox selection
Where the combobox is:
ManagerID stored as a number but displayed as text when selected
Location ID stored as a number but displayed as text when selected
Table Field s for Managers
ID   AutoNumber
Manager Text                        
LocNo Number
Location Text
E-mail Address Text

Table  to store data
RecordID AutoNumber
Date Date/Time
ManagerID Number        
(ComboBox Drawing Data from Managers Table displays Text but store Number, ID & Manger)
LocationNo
(ComboBox Drawing Data from Managers Table displays Text but store Number, LocNo & Location)
LocationNo Number
Request Text
FeeID Number
Cost Currency
TicketNo Number

On my from I had used a Combo box For Request that when I select item the Cost auto populates from the combo box. I used the following after update code.

#Private Sub FeeIDCombo_AfterUpdate()
ReAllocatedCost = DLookup("Cost", "Re-Allocated_Cost_Fee_T", "FeeID=" & FeeIDCombo)
Me.Refresh
End Sub#

Which works great.  
I tied the same logic with the manger and Location but could not get it to work.
Can this be done? Is it because ComboBox is Drawing Data from Managers Table displays Text but store Number, ID & Manger)?

I also tried making an unbound combo to store the value and tried the following code:

#Private Sub FeeIDCombo_AfterUpdate()
Me.ManagerIDTextBox = Me![ManagerIDComboBox].Column(0)
Me.BranchTextBox = Me![ManagerIDComboBox].Column(1)
Me.Refresh
End Sub#

I have been at this for days. Is this possible with values that are Number but display as text?
What am I doing wrong, any incite or direction would be greatly appreciated.

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/16/2026 10:21:57 PM. PLT: 2s