Free Lessons
Courses
Seminars
TechHelp
Fast Tips
Templates
Topic Index
Forum
ABCD
 
Home   Courses   Index   Templates   Seminars   TechHelp   Forums   Help   Contact   Join   Order   Logon  
 
Home > Forums > Developers
Back to Access Developer Forum    Comments List
Upload Images   Link   Email  
List Box Search Form
Cynthia Almond 
     
23 days ago
I used Dev course 26 to create a list box search for my Volunteers Form.  When I double click the name in the list box it ask me for my VolID.  I type in the VolID an it will take me to the record in Vol Form.  I just want to double click and have it go to record in Vol Form. Everything worked fine until I double click.
Private Sub VolListBox_DblClick(Cancel As Integer)
    DoCmd.OpenForm "VolF", , , "VolID=" & VolListBox
Adam Schwanz 
            
23 days ago
That's how you do it, so you got something else wrong. Is VolID an autonumber? What is the Row Source of the listbox? Is the Bound column of the list box the VolID column?
Cynthia Almond OP 
     
23 days ago
VolID is Short Text
Row Source
S = "SELECT VolID, VolLN, VolFN, VolPhone FROM VolT "
Bound Column is 1
Cynthia Almond OP 
     
23 days ago

Kevin Robertson 
          
23 days ago
Text needs Double Double Quotes

    DoCmd.OpenForm "VolF", , , "VolID=""" & VolListBox & """"
Cynthia Almond OP 
     
23 days ago
That worked!  Yea thank you very much
Add a Reply Upload an Image

 
 
 

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 2025 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 2/13/2025 12:20:55 AM. PLT: 1s