Ok, i have used the locate procedure to find a value, say staff_id. I then want to another value relating to that staff_id. The only way i can think of describing it is by showing you this picture......
So ive found staff_id and i want staff_level as well.
but i want to adotable1.locate('staff_username',edit1.text,[]) then i want to say that if staff_level> "a value" then "do somthing"
SELECT staff_id, staff_level
FROM STAFF
where staff_username Like :SearchString
In the Onchange event of edit1 key in
begin
Adoquery.close;
ParamByName('SearchString').AsString := edit1.text;
Adoquery.open;
if Adoquery.FieldByName('staff_level').asString = ...
then blabla
end;
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.