I have a form with a list box in it. The list box displays the results of a SELECT query and I want the user to be able to push a button to delete the item that is selected in the list box. Here is the query I want to run when the user clicks the button.
DELETE *
FROM Client
WHERE
(([Client].[ClientID])=[Forms]![UpdateDeleteClientInformationForm]![ClientFullNameListBox]);
The problem is that I'm unsure how to access the current ClientID from the selection in the list box. How do you access the data in each of the columns in the list box for the selected item in an SQL query?
I'm not particularly comfortable with Access at the moment.