做登陆窗体时候加了个combobox控件
做登陆窗体时候加了个combobox控件;
下面是我的代码:
procedure TForm2.SpeedButton1Click(Sender: TObject);
begin
with adoquery1 do
begin
close;
sql.Clear;
sql.Add('select * from 管理员表 where 用户名=:na ,权限=:sa and 密码=:pa');
parameters.ParamByName('na').Value:=edit1.Text;
parameters.ParamByName('pa').Value:=edit2.Text;
open;
if recordcount=0 then
begin
application.MessageBox('您输入的用户名或密码不正确,请重新输入!','系统提示',0+64);
edit1.Text:='';
edit2.Text:='';
edit1.SetFocus;
exit;
但是权限不知道改怎么处理,谁能告诉我填加什么代码?