delphi 6.0&access2000
有表login中有字段username,password,power.//power表示权限值0表示管理员,1表示一般用户
str:='Select * from login where username='''+edit1.text+''''+' and password='''+edit2.text+'''';
adoquery1.close;
adoquery1.sql.clear;
adoquery1.sql.add(str);
adoquery1.open;
if adoquery1.recordcount=1 then //表示存在这样一个用户
begin
if ?????='0' then form2.show;
if ?????='1' then form3.show; //我想根据用户的不同权限开启不同功能,'?????'程序应该怎样写
end;
//或者上面的程序应该怎样改