In my Excel file there is a form and a spreadsheet. The form has a combo box and a listbox: cboFacility is populated by a list of faciltities; and lstConnections is populated by records in the spreadsheet. There are a number of columns in the spreadsheet (col1, col2, col3...coln, colFacility). Records are constantly being added to the spreadsheet via another process.
I want to populate lstConnections with a SQL statement that takes filtered records from the spreadsheet. So when the user selects a facility from the cboFacility, an SQL statement is built like so: "SELECT col1, col2, col3,...coln FROM SPREADSHEET WHERE colFacility = cboFacility.value". Then lstConnections is populated by the filtered records.
Bookmarks