sql query with fieldName as variable name

info at vallemediatime.com info at vallemediatime.com
Tue May 31 11:54:18 CDT 2005


Hi Ruslan,
I will keep the fieldname as global variable name, how can I write it?

global fieldName
query = "SELECT RecID, * from STUDENTS WHERE fieldName = '" & searchString &
"'"

I've tried with:
query = "SELECT RecID, * from STUDENTS WHERE 'fieldName' = '" & searchString
& "'" and other forms
but I don't try the right way...

P.S. Thank Peter for the "nil" answer :-)



More information about the Valentina mailing list