Double Click List Box!

B

Bob Vance

I have a List Box on my Form [lstNotInvoicing] which comes from a this
query........
SELECT qryHorseList.Invocing, qryHorseList.Name,
DCount("Name","qryActiveNoInvoicing") AS [Count],
funGetHorse(0,tblHorseInfo.HorseID,True) AS Expr1,
funGetHorse(0,tblHorseInfo.HorseID,False) AS Expr2, qryHorseList.HorseID
FROM qryHorseList
WHERE (((qryHorseList.Invocing) Like "No"))
ORDER BY funGetHorse(0,tblHorseInfo.HorseID,True),
funGetHorse(0,tblHorseInfo.HorseID,False);

Is it possible to have an event on my Double-click event in the list box
that will change my Horse/HorseID to "Yes"
The table is tblHorseInfo.Invocing (Text Field, Yes/No)
 
T

Tom Wickerath

Hi Bob,
Is it possible to have an event on my Double-click event in the list box
that will change my Horse/HorseID to "Yes"

This sounds do-able to me, but I think you want to change the data stored in
the Invocing (sp) field, instead of altering the Horse or HorseID. It might
be easiest to use a list box that has the Multiselect property set to No. In
the DoubleClick event procedure, you can run an update query to update the
value of the selected record, as long as your list box row source includes a
primary key (or unique index), such that you can uniquely identify the
selected record. This key value need not be displayed in the list box (set
column width to zero).


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
http://www.access.qbuilt.com/html/expert_contributors.html
__________________________________________

Bob Vance said:
I have a List Box on my Form [lstNotInvoicing] which comes from a this
query........
SELECT qryHorseList.Invocing, qryHorseList.Name,
DCount("Name","qryActiveNoInvoicing") AS [Count],
funGetHorse(0,tblHorseInfo.HorseID,True) AS Expr1,
funGetHorse(0,tblHorseInfo.HorseID,False) AS Expr2, qryHorseList.HorseID
FROM qryHorseList
WHERE (((qryHorseList.Invocing) Like "No"))
ORDER BY funGetHorse(0,tblHorseInfo.HorseID,True),
funGetHorse(0,tblHorseInfo.HorseID,False);

Is it possible to have an event on my Double-click event in the list box
that will change my Horse/HorseID to "Yes"
The table is tblHorseInfo.Invocing (Text Field, Yes/No)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Addition to Query 10
Change Row Source to Query! 10
Adding a new column to ListBox! 7
Print order by Date 13
Change Order for a Report 2
Add one Column to a list box 3
Addition to a Query! 1
Help with Query! 25

Top