I have a form with a list box and the following code which populates the list
This only populates the items, it doesn't select an item. I need a piece of code which prompts the user to make a selection before the form is submitted.
I have this code so far but it doesn't work:
Any advice welcomed,
Lee
Code:
With GroupListBox .AddItem "HMP Low Moss"
.AddItem "HMP Barlinnie"
.AddItem "HMP Greenock"
.AddItem "HMP Edinburgh"
This only populates the items, it doesn't select an item. I need a piece of code which prompts the user to make a selection before the form is submitted.
I have this code so far but it doesn't work:
Code:
If GroupListBox.Value = False ThenMsgBox "Please add in Location", vbExclamation
Exit Sub
End If
Any advice welcomed,
Lee