Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using a ListBox selection to query a database
I am creating a User Interface in Excel that will query tables in Access. My
first Access query places the data into a ListBox, from that list box the user will need to be able to query the database again for the selection he chose from the listbox. (Simply put I am trying to imput the ListBox selection into the SQL statement to query the database again) Does anyone have any suggestions on how to accomplish this. Thanks |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Using a ListBox selection to query a database
Build the query using the value from the listbox.
ie: Dim strValue as string, strSQL as string strvalue = ListBox1.value strSQL = ..... & strvalue & .... HTH, -- Gary Brown If this post was helpful, please click the ''Yes'' button next to ''Was this Post Helpfull to you?''. "CLamar" wrote: I am creating a User Interface in Excel that will query tables in Access. My first Access query places the data into a ListBox, from that list box the user will need to be able to query the database again for the selection he chose from the listbox. (Simply put I am trying to imput the ListBox selection into the SQL statement to query the database again) Does anyone have any suggestions on how to accomplish this. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
pointing to the full list from a database query | Excel Discussion (Misc queries) | |||
Anyone Else Use Database Query to Query Another Sheet in the Same | Excel Discussion (Misc queries) | |||
Database Query | Excel Discussion (Misc queries) | |||
MS Query not installed for New Database Query | Excel Discussion (Misc queries) | |||
How to use a Access Query that as a parameter into Excel database query | Excel Discussion (Misc queries) |