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 
Text Box Based on Combo Box
Wayne Delaney 
    
4 years ago
I recently watched a TechHelp wherein Richard explained how to populate the value in a text box based on the choice in a combo box.  I cannot remember the name of the video and need to watch again.
Adam Schwanz  @Reply  
           
4 years ago
Im not sure if its the right video, but you can do this with an AfterUpdate event
Wayne Delaney OP  @Reply  
    
4 years ago

Wayne Delaney OP  @Reply  
    
4 years ago
I tried to explain in this screen shot what I am trying to do Adam.  Do you think it is possible?
Wayne
Adam Schwanz  @Reply  
           
4 years ago
Sure, put the after update event on the inches field, say you added a field called NewCalcField

Just make the after update event something like

If ComboBoxName <> "" Then
  NewCalcField = DLOOKUP("ContactsPerInchField","TableName","ContactID=" & ComboboxName) * InchesFieldName
End If
Adam Schwanz  @Reply  
           
4 years ago
Actually you could do

If ComboBoxName <> "" and InchesFieldName <> ""

and than you could put it in both fields after update events
Wayne Delaney OP  @Reply  
    
4 years ago
This is related.  The previous never worked for me.  I am getting very frustrated.  This should not be this difficult.  What am I doing wrong.
Wayne Delaney OP  @Reply  
    
4 years ago

Kevin Robertson  @Reply  
          
4 years ago
I notice that MaterialNumber is a ShortText field. Is this by design, or an oversight?
Assuming MaterialNumber is supposed to be ShortText, Try this:

If MaterialNumber <> "" then
   WeightProduced = DLookup("PoundsPer", "FGTBL", "MaterialID=""" & MaterialNumber & """") * QuantityProduced
End If
Kevin Robertson  @Reply  
          
4 years ago
Wayne Delaney OP  @Reply  
    
4 years ago
MaterialNumber is a short text.  It is in fact a PartNumber but I could not use that here.  I'll try this Kevin, Thank you.
Richard Rost  @Reply  
          
4 years ago
Wayne, I see that you're getting frustrated. Keep in mind, this stuff can take years to learn. You're still in my Expert classes. I teach VBA properly in my Developer series. If you want to start seriously learning VBA, I'd recommend my Access Developer 1 lesson to start.

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/2/2026 8:58:00 AM. PLT: 0s