Wrox Programmer Forums
|
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
 
Old May 2nd, 2007, 11:08 AM
Authorized User
 
Join Date: Apr 2007
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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?

 
Old May 2nd, 2007, 12:15 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

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
 
Old May 2nd, 2007, 12:39 PM
Authorized User
 
Join Date: Apr 2007
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old May 4th, 2007, 09:01 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

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
 
Old May 4th, 2007, 05:26 PM
Authorized User
 
Join Date: Apr 2007
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

 
Old May 7th, 2007, 07:05 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

Do you need help on any of those functions? Or are you done?

mmcdonal
 
Old May 7th, 2007, 08:09 AM
Authorized User
 
Join Date: Apr 2007
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I figured it out, thanks.






Similar Threads
Thread Thread Starter Forum Replies Last Post
double click problem naveed77 Beginning VB 6 0 December 4th, 2007 03:49 AM
Simulate a double click? chobo2 C# 5 November 10th, 2007 06:15 AM
Simulating Double Click... savagesoft BOOK: Professional XNA Game Programming: For Xbox 360 and Windows ISBN: 978-0-470-12677-6 1 May 14th, 2007 10:41 AM
Right-Click or Double-Click Combobox? panuvin C# 2005 3 June 15th, 2006 04:30 PM
Double Click problem Merlin Java GUI 1 March 31st, 2004 10:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.