feature selection: Attribute query

Discussion created by shiva_gis on May 22, 2011
Latest reply on May 24, 2011 by shiva_gis

I am trying to select features using attribute query. Variable are referenced to listbox. Can anyone please let me why my whereclause is set to false and i am unable to select the features.
please ref the attached screenshot.

pqf.WhereClause = fieldname = fieldvalue     :    is the expression i used to implement fieldname and fieldvalue as variables.Tried various options like using &, ", ( etc etc...but did not find a way to use both as variables(fieldname and fieldvalue).

thanks n regards,