If Val(Text2(5).Text) Mod 2 <> 0 Then MsgBox "配套数量不对,请重新选择" Else ptdqcs6 = "2" Call openconn '打开连接数据库 Sql = "select *from jcsj where 规格型号 like '%" & PassEn(dq1k2) & "%' and 名称 like '%" & EnCodeString(dqgg, True) & "%'" rs.Open Sql, cn, 1, 1 <--------------执行到这里是弹出内存溢出的警告 If rs.RecordCount > 0Then Call dqfz CallAdjustColWidth(Form3, Form3.MS4) End If Call closeconn End If