chiannet 发表于 2014-5-22 15:58 谢谢提醒,我再想想其他的办法 |
chiannet 发表于 2014-5-22 15:43 没能成功,可是我不会用,请C大教我一下,最好把完整的代码贴上来,谢谢 |
chiannet 发表于 2014-5-22 15:43 谢谢C大,我试试看 |
procedure TForm1.FormCreate(Sender: TObject); begin getdir(0,dir); try Adoconnection1.ConnectionString:='Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source='+ExtractFilePath(Application.ExeName)+'\db.mdb'+';Mode=Share Deny None;Jet OLEDB:System database="";Jet OLEDB:Registry Path="";Jet OLEDB:Database Password="";Jet OLEDB:Engine Type=5'; adotable1.Connection:=adoconnection1; adotable1.Open; adoquery1.Open; except Adotable1.Close; adoquery1.Close; end; end; procedure TForm1.Button2Click(Sender: TObject); ...... with adoquery1 do begin close; sql.Clear; sql.Add('select * from 表X where hwid=:USB\VID_0BDA&PID_0138'); open; ....... |
以下是delphi 代码实例,修改一下就可以了。
|
Powered by Discuz! X3.3
© 2001-2017 Comsenz Inc.