I
Ian Norris
I have a multirow form which I want to populate via SQL.
I retrieve 13 records from SQL into a recordset, but when
I try to enter them into a form the first row in the form
is constantly overwritten leaving me just the 13th record
displayed. I populate the form using the following code.
Do While Not rs.EOF
With rs
Forms!mainform!subform!field1 = !field1
Forms!mainform!subform!field2 = !field2
rs.MoveNext
End With
Loop
rs.close
Each insert completely fills the row on my subform and I
thought
that it would automatically move to the next row for my
next insert.
Does anyone know how I can force a move to the next row
after each insert.
Many Thanks
I retrieve 13 records from SQL into a recordset, but when
I try to enter them into a form the first row in the form
is constantly overwritten leaving me just the 13th record
displayed. I populate the form using the following code.
Do While Not rs.EOF
With rs
Forms!mainform!subform!field1 = !field1
Forms!mainform!subform!field2 = !field2
rs.MoveNext
End With
Loop
rs.close
Each insert completely fills the row on my subform and I
thought
that it would automatically move to the next row for my
next insert.
Does anyone know how I can force a move to the next row
after each insert.
Many Thanks