以下是引用wuaza在2006-4-13 16:05:00的发言:
strsql = "SELECT * from y健康证 where 姓名+单位 like '%" & Me.Text0.text & "%'"
Me.合格.Form.RecordSource = strsql
For i = 0 To Forms!y健康证!合格.Form.SelHeight - 1
strwhere = strwhere & "," & Forms!y健康证!合格.Form.id
Forms!y健康证!合格.Form.Recordset.MoveNext
Next
当Me.合格.Form中的记录经过筛选后,上述语句就不正常了,主要是经过movenext以后,Forms!y健康证!合格.Form.id始终停留在一个固定的值上。
欢迎光临 Office中国论坛/Access中国论坛 (http://www.office-cn.net/) | Powered by Discuz! X3.3 |