Hello All,
I have a data entry form with a listbox that is set to simple which allows for multiselect in the listbox. I understand that from a recent response that there are two commands that needs to be used to captures the items selected. They are:
'Create new record
DoCmd.GoToRecord acDataForm, "formname", acNewRec
'Save new record
DoCmd.RunCommand acCmdSaveRecord
I was told to put these two commands in a loop to save each items selected. My question is where do I create the loop and statement? I'm familiar with macros but no in visual basic. Any help or advice in this matter is greatly appreciated. Thanks for your time and patience.
I have a data entry form with a listbox that is set to simple which allows for multiselect in the listbox. I understand that from a recent response that there are two commands that needs to be used to captures the items selected. They are:
'Create new record
DoCmd.GoToRecord acDataForm, "formname", acNewRec
'Save new record
DoCmd.RunCommand acCmdSaveRecord
I was told to put these two commands in a loop to save each items selected. My question is where do I create the loop and statement? I'm familiar with macros but no in visual basic. Any help or advice in this matter is greatly appreciated. Thanks for your time and patience.