 |
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|

May 2nd, 2007, 11:08 AM
|
Authorized User
|
|
Join Date: Apr 2007
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Double-click event
Ok, I made a form, 'frmSearchContact', and need it to open on a double-click event from a "main form", 'frmTask', when the user double-clicks on a listbox (list85) for "Pick-up Contact". I tried to use the 'call' procedure in the code for the double-click event like I did with a calendar form, 'frmCalendar' but it didn't work.
Suggestions?
|

May 2nd, 2007, 12:15 PM
|
Friend of Wrox
|
|
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
|
|
Yikes, I would not use a double-click event, perhaps a button to open the form. But on the Double Click event of the list box, just use the DoCmd.OpenForm. If you used a button below the list box, then the wizard would do all this for you, including writing the linking code.
Did that help?
mmcdonal
|

May 2nd, 2007, 12:39 PM
|
Authorized User
|
|
Join Date: Apr 2007
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I was just trying to keep the layout of the form a little nicer than cluttered. I wish we could upload to here cause then it'd be much easier to show what I'm trying to do cause there is a few things I can't figure out.
|

May 4th, 2007, 09:01 AM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
|
|
Can you show us the double-click code?
MMcDonal is correct in that double-clicking a list off a combo or list box is not a standard Windows action. Usually, there is an OK or GO or some button next to a list. You pick, then click the button to proceed. Because it's not standard, most people will not intuitively know you can double click it and make it do something.
Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
|

May 4th, 2007, 05:26 PM
|
Authorized User
|
|
Join Date: Apr 2007
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I got it to double-click. Now I just have to make the 'search for contact' form work, then allow the user to double-click the selected contact and have it insert it back, AND click the 'insert contact' and insert it back.
|

May 7th, 2007, 07:05 AM
|
Friend of Wrox
|
|
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
|
|
Do you need help on any of those functions? Or are you done?
mmcdonal
|

May 7th, 2007, 08:09 AM
|
Authorized User
|
|
Join Date: Apr 2007
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
I figured it out, thanks.
|
|
 |