List Box

M

Mark

I have a list box (LsOrd) on a form that has a double click event. I want to be able to delete the record that I select during the double click. The where clause is what I need help on. How do I address the something in a List Box?

DELETE tbOrdHold.qtyhld, tbOrdHold.itmhld, tbOrdHold.Jobnum
FROM tbOrdHold
WHERE (((tbOrdHold.itmhld)="LsOrd") AND ((tbOrdHold.Jobnum)="LsOrd"));
 
D

Dan Artuso

Hi,
Well, to refer to a list box in a query, you use this syntax:
Forms!yourFormName!yourListBoxName

--
HTH
Dan Artuso, Access MVP


Mark said:
I have a list box (LsOrd) on a form that has a double click event. I want to be able to delete the record that I select during
the double click. The where clause is what I need help on. How do I address the something in a List Box?
 

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

Top