A: select 物资编码,物资名称 from 物资台帐 where 物资编码="+Text1(0)+" or "物资名称="+Text1(1)+")B: ADOrs.Open strSQLC: ADOrs!=nullB: ADOrs.Execute 希望可以帮到你啦!