Hi,
I am trying to load a number of records into a subform "Schedule Codes" from form "Certif" using the followowing code.
[CODE]Do While Not RS.EOF
With RS
Forms![certif]![schedule codes]![GroupNo] = !GroupNo
Forms![certif]![schedule codes]!
On the first pass data is loaded into the first record of form Schedule Codes but Docmd.GoToRecor d , , acNewRec produces a "Can't go to Specified Record" error and subsequent loads overwrite the first record. I have tried to set focus to the subform but get the error "Can't move to the control Schedule Codes". The .SetFocus only seems to work if I enter a field name.
Any help on loadiing data into a subform would be appreciated.
I am trying to load a number of records into a subform "Schedule Codes" from form "Certif" using the followowing code.
[CODE]Do While Not RS.EOF
With RS
Forms![certif]![schedule codes]![GroupNo] = !GroupNo
Forms![certif]![schedule codes]!
Code:
= !Code Forms![certif]![schedule codes]![Date] = Now() Forms![certif]![schedule codes]![GroupNo].SetFocus DoCmd.GoToRecord , , acNewRec RS.MoveNext End With Loop RS.Close Forms![certif].SetFocus
Any help on loadiing data into a subform would be appreciated.
Comment