The annoying thing about this code is that it performs a separate update for each item in the list box. How could I use the loop to accumulate the records to be updated and then perform all the updates at once (ask for confirmation just once instead of multiple times)?
Dim SQLMasterUpdate As String
Dim iRow As Variant
If Me!RestaurantListBox.ItemsSelected.Count <> 0 Then
For Each iRow In Me!RestaurantListBox.ItemsSelected
SQLMasterUpdate = " (SQL Update statement) "
DoCmd.RunSQL SQLMasterUpdate
Next iRow
Else
MsgBox "Nothing was selected from the list", vbInformation
Exit Sub 'Nothing was selected
End If