Hi
I have a form linked to one table. It is a form for adding a new record of a lesson plan. This I've managed to do fine using theI have then tried to add a list box which adds training needs for a given lesson plan. As there are normally many training needs for one lesson plan it is in a seperate table linking by the lessonID. Again I can get this to work using the codeCode:DoCmd.RunCommand acCmdSaveRecord
Problem is when I try to put them together in one function like command button the first part of the code seems to clear the selected items in the list. If you reselect the items and click it again it seems to work fine.Code:Set ctl = Me.lstTraining For Each varItem In ctl.ItemsSelected rs.AddNew rs!TrainingID = ctl.ItemData(varItem) rs!LessonID = Me.Text44 MsgBox "now" rs.Update
Any help would be appreciated
Neil