Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Seminars   Templates   TechHelp   Fast Tips   Forums   Help   Contact   Join   Order   Logon  
 
Home > Help > AccessDev.NET >
AccessDev.NET AccessDev.NET


Back to AccessDev.NET
 

Clear Fields Dropdown Change Upload Images   Link  
David Buller 
2 months ago
I'd appreciate a steer on a problem. I have 2 numeric fields in a subform, values of which are input by user based on text selected from a dropdown list in another field in same subform. What VBA or other option can I use so that these 2 numeric fields are re-set to 0 (zero) when user changes selection in the dropdon list to "No show". What I've read so far suggests that AfterUpdate can be used but how best to configure with VBA or otherwise? Thanks
Kevin Robertson
2 months ago
You are correct. After Update is the event you need.
This is assuming the first column in your Combo Box is an ID.

If ComboBoxName.Column(1) = "No show" Then
   Textbox1 = 0
   Textbox2 = 0
End If


If Then
Alex Hedley
2 months ago
AfterUpdate with an If checking the value, maybe COMBONAME.Column(1) = No show, TextBoxName = 0 etc
David Buller
2 months ago
Thanks. Pls can you point me to something that explains about COLUMN designators, as not very experienced with VBA & so far not working.
Kevin Robertson
2 months ago
This video covers Combo Box Columns.

Customer Discount
David Buller
2 months ago
Is working now, thanks for your help guys

This thread is now closed. If you wish to comment, start a NEW discussion, below.
 


Back to AccessDev.NET Comments
 

Start a NEW Conversation
 
Only students may post right now. Click here for more information on how you can set up an account. If you are a student, please LOG ON first.
 
Subscribe
 

Check out these other pages that may be of interest to you:

9/27/2022Report Border
9/26/2022First Day of Month
9/23/2022Before Update
9/22/2022Synchronize Subforms
9/21/2022InputBox
9/20/2022Link Master Fields
9/19/2022DateSerial
9/18/2022Sequential Annual Coding
9/16/2022Scope
9/15/2022Resize Forms
 
 
The following is a paid advertisement banner. They are used to support the site.
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
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
amicron@gmail.com
Blog RSS Feed    Twitter

YouTube Channel    LinkedIn