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 
Not Sure What Im Looking For
Glenn Kraniske 
    
4 years ago
Greetings All,
So I have a database where I'm tracking inventory of Fishing Poles.  Not having any issues but I'm like to take it a step further.  I have a conbo box (pull down box) that only has selectable options of YES or NO.  Here's what I want to happen, if the user clicks the NO option, nothing happens.  However if the user selects the YES option, I'd like another field to appear where a receipt number can be added.  Is there a way to do this?  I've been all over YouTube and I'm coming up dry.  Thanks so much in advance.

-Glenn
Adam Schwanz  @Reply  
           
4 years ago
Just make an AfterUpdate on the combo box with an if statement, if its yes make the text box visible, otherwise make the textbox not visible.
Richard Rost  @Reply  
          
4 years ago
I do something almost exactly like this in Access Developer 1. If you check a box that says "shipping address same as billing" then it copies over the address info to the other fields. You'd do the same thing, just change the .Visible property of the boxes you want to show/hide.
Glenn Kraniske OP  @Reply  
    
4 years ago
So I did what Adam said but I found an issue.  What's happening is if I click the YES option, the appropriate field appears.  But when I move to the next record the field is still visible even though the NO option is chosen.  Here's my code;

Private Sub FishingPoleSold_AfterUpdate()
    If Me.FishingPoleSold = "1" Then
    Me.SoldTo.Visible = True
    Else
    Me.SoldTo.Visible = False
End If
End Sub
Kevin Robertson  @Reply  
          
4 years ago
You will also need to use the OnCurrent Event
Glenn Kraniske OP  @Reply  
    
4 years ago
OnCurrentEvent?  Where do I put the code and am I using the same code?
Adam Schwanz  @Reply  
           
4 years ago
Go to the form properties, on current event. And yes you can use the same code.
Adam Schwanz  @Reply  
           
4 years ago

Richard Rost  @Reply  
          
4 years ago
Watch the video Kevin suggested
Glenn Kraniske OP  @Reply  
    
4 years ago
Got it!  Works great, thanks.  By the way, that video was exactly what I needed.
Richard Rost  @Reply  
          
4 years ago
If you liked that, consider the rest of the Developer series. You'd be surprised how many cool things you can do with Access once you know how. :)

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/6/2026 12:10:03 PM. PLT: 1s