This is the error I get when I run the code below. I'm not too sure what's wrong any help is appreciated

procedure TFSearchMember.btnSearchClick(Sender: TObject);
var buttonSelected:integer;
WhereTextSelection,WhereFieldSelection:string;
begin
WhereFieldSelection:=cboWhereField.Text;
WhereTextSelection:=txtWhere.Text;
adoQuery1.Parameters[0].Value:=WhereTextSelection;
adoQuery1.Open;
ADOQuery1.Requery;
txtWhere.Text:='';
cboWhereField.Text:='';
if ADOQuery1.RecordCount=0 then
begin
buttonSelected:=MessageDlg('Record not found.', mtError, [mbOK],0);
if buttonSelected = mrOK then
Exit;
end;
I also have this in the ADOQuery SQL property

adoQuery1.Open;and then immediately callingadoQuery1.Requery;? Use some common sense: if you've just opened the query, why in the world would you think you need to requery it again? Let's see. I'll turn the doorknob on my front door, push the door open, and then immediately push it again without doing anything in between. Does that make any kind of sense to you?