I have VB.net app that when run you select from listbox values that should then be used in select query.Then click save command button. see vb code snippet below
transport = lsttrans.SelectedItem
leave = lstleave.SelectedItem
then query like below.Note transport and leave are dummy columns not on existing employee table.
select employeeid,'' as transport_allowance,'' as leave from employees
i wish to somehow create new query to be something close to the below using my selected values in listbox.
select employeeid,transport,leave from employees