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 
dbl click on Continuous form
Masih Ostad Novin 
     
3 years ago
Dear Richard!
I have a continuous form that replaces a list box because I want the conditional formatting and everything is working nice. The colors and stuff... but I can't figure it out how or where I should put the double click event to open forms based on the search criteria. I have seen your "select case" in VBA but it does not work here. It works in the list box. Please help...

Masih
Stockholm, Sweden
Scott Axton  @Reply  
        
3 years ago
The short answer is it depends on what you are trying to do.
First I recommend watching On Double Click

That should get you started.  If you don't see what you need then come on back.
We will probably need more details including screen shots if you need to.  For instance if you want to open a specific invoice for a customer from that customers list of invoices.
Masih Ostad Novin OP  @Reply  
     
3 years ago

Masih Ostad Novin OP  @Reply  
     
3 years ago
As you can see I want to make a dbl click event based on the information in "Module" which is "IHC-Single" and "IHC-Multi". I have done this before with a list box (the search seminar) and it worked perfectly. Here is my code in VBA:

Select Case SearchList.Column(1)
        Case "IHC-Single":
            DoCmd.OpenForm "IHCSingleMasterMainF", , , "MasterID=" & SearchList
        
Case "IHC-Multi":
            DoCmd.OpenForm "IHCMultiMasterMainF", , , "MultiMasterID=" & SearchList

But now I want to do this in the form instead of list box.
See the form I submit.

I love Richard's VBA, it's nice when it works.

Thanks!
Masih Ostad Novin OP  @Reply  
     
3 years ago
Dear Richard,
I can't find anything like what I want to do in the Tech help videos, would you please give me some feedback to my problem? Thanks.
Kevin Robertson  @Reply  
          
3 years ago
Choose which field you want your users to Double Click on. In my example I use ModuleName (Module on its own is a reserved word).

Private Sub ModuleName_DblClick(Cancel As Integer)

    Select Case ModuleName
        Case "IHC-Single"
            DoCmd.OpenForm "IHCSingleMasterMainF", , , "MasterID=" & MasterID
        Case "IHC-Multi"
            DoCmd.OpenForm "IHCMultiMasterMainF", , , "MultiMasterID=" & MultiMasterID
        End Select
        
End Sub


This should get you started. If you can't get it to work we will need to know more about your table structure.
Masih Ostad Novin OP  @Reply  
     
3 years ago
Dear Kevin,
Thank you very much. It works now. I replaced only MasterID and MultiMasterID to just ID because my source is a union query that puts both IDs AS ID. Thanks again!

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 1:57:11 AM. PLT: 1s