Set rs = ado_query("select * from JFxfjl where HID=" & rqid & " and DATEDIFF('d',now(),sj)=0 and QK like 'IP为%'")或者Set rs = ado_query("select * from JFxfjl where HID=" & rqid & " and DATEDIFF('d',now(),sj)=0 and instr(QK,'IP为')=1")推荐用第一种