I am attempting a bit of reverse engineering with a query builder I have designed. The user can select fields from a list box and then build a query from them. They can then save the SQL statement as a record in a table (or multiple records if the SQL statement is over 255 in length).
The problem arises when I load the query. I can concatenate the fields to produce the loaded SQL statement. I can then split in the SQL statement into its component parts (SELECT, FROM, WHERE, ORDER BY) and then into the fields.
The question is can I take the list of values and highlight those values where they appear in the list box?
The problem arises when I load the query. I can concatenate the fields to produce the loaded SQL statement. I can then split in the SQL statement into its component parts (SELECT, FROM, WHERE, ORDER BY) and then into the fields.
The question is can I take the list of values and highlight those values where they appear in the list box?