Loop through subform records

S

smk2

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
 
C

Chris

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top