Hi
I have a cmd button that, after help from members with the insert and update statements works with trial data. The on_click takes the pk from the form and creates a record in a linking table and then, after selecting a Course ID from a combo, updates the linking table on the last record and then displays relevant the information in the subform.
How do I create and then cancel a loop while the combo contains no data? The combo is deliberately set "" prior to getting the Course ID or the code would run through and add whatever is the start record in the combo.
Regards
Paul
I have a cmd button that, after help from members with the insert and update statements works with trial data. The on_click takes the pk from the form and creates a record in a linking table and then, after selecting a Course ID from a combo, updates the linking table on the last record and then displays relevant the information in the subform.
How do I create and then cancel a loop while the combo contains no data? The combo is deliberately set "" prior to getting the Course ID or the code would run through and add whatever is the start record in the combo.
Regards
Paul
