K
kristy811203
Unregistered / Unconfirmed
GUEST, unregistred user!
var<br> ExpertSearchFrm: TExpertSearchFrm;<br> str1 :string;<br>implementation<br><br>uses Main,ExpertSearchRep;<br><br>procedure TExpertSearchFrm.Button1Click(Sender: TObject);<br><br>begin<br> str1:='select * from Expert where '+combobox1.Text+'='+''''+trim(edit1.Text)+'''';<br> adocommand1.CommandText:=str1;<br> search1.Recordset:=adocommand1.Execute;<br> search1.Open;<br><br> frmExpertSearchRep :=TfrmExpertSearchRep.Create(application);<br><br> with frmExpertSearchRep.ADOTable1 do<br> begin<br> close;<br> connection:=frmMain.ADOConnection1;<br> TableName:='Expert';<br> Filtered:=false;<br> Filter:='str1';<br> Filtered:=true;<br> open;<br> end;<br>提示以下错误:<br>Project ExpertExtract.exe raised exception class EOLeException with message '参数类型不正确,或不在可以接受的范围之内,或与其他冲突。' process stopped. Use Step or Run to continue.<br><br>我跟踪了一下,错误出现在最下面那个open,被执行的时候.