H
Hexi
Unregistered / Unconfirmed
GUEST, unregistred user!
远程数据模块中有下面一段程序:
tbLogin是一个ADOQuery.
tbLogin.SQL.Text:=Format('select * from vwManager where Upper(FName)=Upper(''%s'') and FPassword=''%s''',
[Name, Password]);
tbLogin.Open;
if tbLogin.RecordCount<1 then
//当返回记录数为0时
begin
tbLogin.Close;//每次执行到这里就出现错误:
//“Either BOF or EOF is True, or the current record has been deleted.
//Requested operation requires a current record”
//请问如何解决?
end
tbLogin是一个ADOQuery.
tbLogin.SQL.Text:=Format('select * from vwManager where Upper(FName)=Upper(''%s'') and FPassword=''%s''',
[Name, Password]);
tbLogin.Open;
if tbLogin.RecordCount<1 then
//当返回记录数为0时
begin
tbLogin.Close;//每次执行到这里就出现错误:
//“Either BOF or EOF is True, or the current record has been deleted.
//Requested operation requires a current record”
//请问如何解决?
end