• Reddy SreeDevi
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
    public void searchRecord()
    {
        soql='';
        soql=soql+'select id,First_Name__c,Country__c from Candidate__c';
        soql = soql+'where City__c =' + '\''+selectedcity +'\'';
        lstc =database.query(soql);
}
Visualforce Error
Help for this Page
System.QueryException: unexpected token: =
Error is in expression '{!searchRecord}' in component <apex:commandButton> in page v29searchcandidate: Class.candidatecitysearch.searchRecord: line 19, column 1
Class.candidatecitysearch.searchRecord: line 19, column 1