环境是Delphi6.0 、Access2000
var
strID:string;
//orderID为String型
begin
adoTable1.Filter:='OrderID>'+''''+strID+'''';
//adoTable1.Filter:='OrderID='+''''+strID+'''';//改为=号就不报错
end; 运行时报错!
Project Project1.exe raised exception class EOleException with message “应用程序使用的参数或类型不正确,或者不在可以接受的范围之内,要不就是与其他数据冲突。”process stopped, use step or run continue.
//请各位帮忙解决!
var
strID:string;
//orderID为String型
begin
adoTable1.Filter:='OrderID>'+''''+strID+'''';
//adoTable1.Filter:='OrderID='+''''+strID+'''';//改为=号就不报错
end; 运行时报错!
Project Project1.exe raised exception class EOleException with message “应用程序使用的参数或类型不正确,或者不在可以接受的范围之内,要不就是与其他数据冲突。”process stopped, use step or run continue.
//请各位帮忙解决!
select ........................( 你原来的SQL)
where OrderID > :strID
在打开adoquery 对:strID进行赋值
Employees.filter:='lastname >'+''''+'Young'+'''';
Employees.Filtered:=true;