|
6#
楼主 |
发表于 2011-4-13 15:30:10
|
只看该作者
sqlStr = "select * from Policy_SP_Clause where [policy_sbj_id]='" & Me.id.Value & "'"
Set rs = CurrentDb.OpenRecordset(sqlStr)
For N = 1 To 8 '8条Clause明细记录处理
policy_sublimits = rs.Fields("policy_sublimits")
clause_descr_en = rs.Fields("clause_descr_en")
.Text = "[" & "policy_sublimits" & N & "]"
.Replacement.Text = Nz(IIf(rs.EOF, "", policy_sublimits), "")
' .Replacement.Text = Nz(IIf(rs.EOF, "", rs!policy_sublimits), "")
.Execute , , , , , , , , , , 2 '全部查找和替换
.Text = "[" & "clause_descr_en" & N & "]"
.Replacement.Text = Nz(IIf(rs.EOF, "", clause_descr_en), "")
' .Replacement.Text = Nz(IIf(rs.EOF, "", rs!clause_descr_en), "") '直接读取仍不行
.Execute , , , , , , , , , , 2
If Not rs.EOF Then rs.MoveNext
Next
找到这个内容,和todaynow的思路是一样的。 |
|