probably a very simple answer. I'm trying to copy an example from a book. Not a good idea really I suppose. Anyway, my SQL is
my button code is:-
It is supposed to pull the record that corresponds to the edit1.text. However, when I try and set the SQL active to true, I get an error message that says "ADOTable1:Field mcode not found." mcode is supposed to be a variable and have values passed to it and isn't a field in my db.
Any ideas why or where this is going wrong?
TIA
Code:
select * from tblMytable where NAME =:mcode
my button code is:-
Code:
query3.active:=false;
query3.ParamByName('mcode').AsString:=Edit1.text;
query3.active:=true;
It is supposed to pull the record that corresponds to the edit1.text. However, when I try and set the SQL active to true, I get an error message that says "ADOTable1:Field mcode not found." mcode is supposed to be a variable and have values passed to it and isn't a field in my db.
Any ideas why or where this is going wrong?
TIA