I have a listbox thats row source is set via dlookup. its copying SQL string from another table.
lstResults.RowSource = DLookup("[SQL_STRING]", "RebisView", "View_Name =" & Chr(34) & selview & Chr(34))
I need to add a creiteria to this row source. Problem is I cannot add it to the original SQL string as it is used in other parts of our application and can't be modified.
The criteria I would like to add is stored in a variable.
How can I add this criteria to the query after the query is set into the rowsource of the listbox?
Thanks!
lstResults.RowSource = DLookup("[SQL_STRING]", "RebisView", "View_Name =" & Chr(34) & selview & Chr(34))
I need to add a creiteria to this row source. Problem is I cannot add it to the original SQL string as it is used in other parts of our application and can't be modified.
The criteria I would like to add is stored in a variable.
How can I add this criteria to the query after the query is set into the rowsource of the listbox?
Thanks!