Loop through subform records

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way loop through records on a subform from the parent form? I need to print a list of items in a subform from code in the parent form.
Thanks for the help.
SMK
 
Dim rst as Object
set Rst = Me.subfrmCtlName.Form.RecordsetClone
Do Until rst.EOF
debug.print rst.fields("FieldName").value
rst.movenext
loop
set rst = nothing


(AIR CODE ABOVE)

Chris

-----Original Message-----
Is there a way loop through records on a subform from the
parent form? I need to print a list of items in a subform
from code in the parent form.
 
Back
Top