Hi all,
I am using a button to open a form to a specific set of records using the following code.
I need to add before this code an If Statment with msgbox VB OK If there is not a selection in the listbox "CboSelectRole.Column(0)Code:Private Sub CmdPrimaryFunction_Click() DoCmd.OpenForm "PrimaryFunctionFrm" Forms!CompanyFunctionFrm!CboSelectRole.Column(0) = PrimaryRoleID End Sub
Msg = "You must select a role from the Selected Role(s) List!"
So basically if i dont select (Click) on one of the items in the list box, it wont let me open form up! I have never done this with a listbox before!
Thanks
Dave