473,402 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

List Box DoubleClick

DS
Is there a way to doubleclick on an item in a listbox which would then
open a form? Each item in the list box would have to open a different form.
Thanks
DS
Nov 13 '05 #1
5 4767
take a look at the double click event for the list box.

Nov 13 '05 #2
DS
misscrf wrote:
take a look at the double click event for the list box.

That works to open a form, but the problem is when you click anywhere in
the box the form opens. I need to open a different form for each item
or value in the listbox.
Thanks
DS
Nov 13 '05 #3
Try:

If Me!myListBox.column(0) = "FirstValue" then
DoCmd.OpenForm "myForm1"
Elseif Me!myListBox.column(0) = "2ndValue" then
DoCmd.OpenForm ":myForm2"
' as many as you need. Can you really count on the listbox valuse
remaining static?
'list/combo boxes start their columns with 0, so the second column (if
you are using a 'zero width ID in the first column) would be 1.
End If

-Ed
"DS" <bo******@optonline.net> wrote in message
news:cU*****************@fe08.lga...
misscrf wrote:
take a look at the double click event for the list box.

That works to open a form, but the problem is when you click anywhere in
the box the form opens. I need to open a different form for each item or
value in the listbox.
Thanks
DS

Nov 13 '05 #4
DS
Ed Robichaud wrote:
Try:

If Me!myListBox.column(0) = "FirstValue" then
DoCmd.OpenForm "myForm1"
Elseif Me!myListBox.column(0) = "2ndValue" then
DoCmd.OpenForm ":myForm2"
' as many as you need. Can you really count on the listbox valuse
remaining static?
'list/combo boxes start their columns with 0, so the second column (if
you are using a 'zero width ID in the first column) would be 1.
End If

-Ed
"DS" <bo******@optonline.net> wrote in message
news:cU*****************@fe08.lga...
misscrf wrote:
take a look at the double click event for the list box.


That works to open a form, but the problem is when you click anywhere in
the box the form opens. I need to open a different form for each item or
value in the listbox.
Thanks
DS


Sounds good, except when you static, do uo mean always changing? The
list box will always be changing.
Thanks,
DS
Nov 13 '05 #5
No, dynamic would be changing. Static means won't change.

I had a solution like that and had to change it for the same reason.
You might try a table that has those values with their respective form
to open in another column. Then you can do a where listbox = listbox
open form = listbox.column (#) <--# column with name of form.
Something like that.
misscrf

It is never too late to become what you could have been ~ George Eliot

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: tin | last post by:
some of our visitors have complaint to us that our site is inaccessible when they have software that blocked doubleclick.net ads or their ISP blocking *.doubleclick.net site. Yes, we do use...
0
by: Koo Min | last post by:
Hello, I've added drag-and-drop feature to a windows forms label control which is contained in a panel. And I added a doubleclick event handler to the drag-and-drop-abled label, but doubleclick...
5
by: David Lozzi | last post by:
Hey All, I have a listbox that I would like to fire an event on doubleclick. the onDoubleClick property of the listbox isnt available be default, and I know it will work with Javascript, but how...
3
by: active | last post by:
DoubleClick seems to work OK with a ListBox. However, with a ListView I never get the event fired. I looked at both the LIstBox and ListView events and neither lists the DoubleClick??? But...
2
by: active | last post by:
I'm about ready to give up unless someone has an idea. Trying to do in a ListView DragDrop and DoubleClick. I can make it work if they use different mouse buttons. But if I use the left...
4
by: Tor Inge Rislaa | last post by:
DoubleClick in DataGrid Hi I have a Datagrid bound to a dataset that I want to write a DoubleClick procedure on. My problem is that the DoubleClick event is raised only when DoubleClicking the...
2
by: Boni | last post by:
Dear all, I am interested in mouse down and double click events of a control. When doubleclick happens the processing for mouse down should't be done I did follwing: sub MyMouseDown(.) handles...
3
by: LCAdeveloper | last post by:
Help! A trawl through the archives couldn't shed any light on this, so is there a way to handle DoubleClick events for RadioButtons in vb.NET? I'm recoding a VB4 application, which used the...
3
by: C Glenn | last post by:
I would like one DoubleClick event handler to handle all double clicks throughout a DataGrid. I've assigned a DoubleClick event handler to the DataGrid and it works nifty-spiffy so long as I click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.