Not exactly. 2 thoughts, Look at the field that you ask for the name. If you are using it in a where clause or as an expression in a field then you should be able to reference that field in code.
Otherwise construct your sql statement in code storing the input in a variable. Then assign the sql statement the query. Then you can use the query and have the input data stored in a variable.
There are plenty of examples in these forums on how to change the SQL of an existing query.
Andy Baldwin
"Testing is the most overlooked programming language on the books!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.