T
Tim
Hi, I'm trying to figure out if there is any way to build a
variable that has other variables embedded in it. I have a
listbox that I want to change the rowsource criteria for
when the user selects various checkboxes. The rowsource is
a very long SQL string and the parts I am dynamiclly is
spread out through the SQL. I know I can break the SQL into
parts around the criteria and re-build it everytime one of
the checkboxes changes, however it would be so much easier
and cleaner if I could build the SQL into some sort of
variable, and embed other variables where my dynamic
critera is (some are where clauses, others are Order By
clauses). Then I could define the main SQL once, and just
change to embedded variable tied to whatever checkbox was
modified. Is there a way to do that with VB? It's been a
while, but I thought in Java you could do it with
constants, though I know you can't do that in VB. Thanks
for any help
Tim
variable that has other variables embedded in it. I have a
listbox that I want to change the rowsource criteria for
when the user selects various checkboxes. The rowsource is
a very long SQL string and the parts I am dynamiclly is
spread out through the SQL. I know I can break the SQL into
parts around the criteria and re-build it everytime one of
the checkboxes changes, however it would be so much easier
and cleaner if I could build the SQL into some sort of
variable, and embed other variables where my dynamic
critera is (some are where clauses, others are Order By
clauses). Then I could define the main SQL once, and just
change to embedded variable tied to whatever checkbox was
modified. Is there a way to do that with VB? It's been a
while, but I thought in Java you could do it with
constants, though I know you can't do that in VB. Thanks
for any help
Tim