B
billson
Unregistered / Unconfirmed
GUEST, unregistred user!
With DataModule1.ADOQuery1 do
begin
close;
sql.Clear;
sql.Add('select FAccountName from TBas_Account where FAccountName='''
+txtUser.Text+'''');
open;
If Not Eof Then frmPub.ShowMessage('存在该用户,无法添加用户!')
else
begin
insert();
Recordset.Fields.Item['FAccountName'].Value :=txtUser.Text;
Recordset.Fields.Item['FAccountPwd'].Value :=txtPwd.Text;
UpdateRecord;
end;
end;
begin
close;
sql.Clear;
sql.Add('select FAccountName from TBas_Account where FAccountName='''
+txtUser.Text+'''');
open;
If Not Eof Then frmPub.ShowMessage('存在该用户,无法添加用户!')
else
begin
insert();
Recordset.Fields.Item['FAccountName'].Value :=txtUser.Text;
Recordset.Fields.Item['FAccountPwd'].Value :=txtPwd.Text;
UpdateRecord;
end;
end;