G
Guest
I have the following code but when the it rusn again the EOF is true. It
should start over again from the first record.
Private Sub cmbYear_AfterUpdate()
Me.qMainCodeInYear_subform.Requery
Dim rst As Object
Set rst = Form_qMainCodeInYearSubform.RecordsetClone
While (Not (rst.EOF))
MsgBox rst![MAINT_CODE]
rst.MoveNext
Wend
rst.Close
Set rst = Nothing
End Sub
Thanks.
should start over again from the first record.
Private Sub cmbYear_AfterUpdate()
Me.qMainCodeInYear_subform.Requery
Dim rst As Object
Set rst = Form_qMainCodeInYearSubform.RecordsetClone
While (Not (rst.EOF))
MsgBox rst![MAINT_CODE]
rst.MoveNext
Wend
rst.Close
Set rst = Nothing
End Sub
Thanks.