Say you have a main form and security form
After creating checkboxes and Combobox for the groupname and menu. Do the operation for updating the table for this menu's, (I used Updating since in adding username group, you have to insert this to your table for security like what I stated above, then just update it in security form).
On your security form load event, create select statement
Select * From Security where groupName = 'yourGroupName'
Set the check status of every checkbox you have:
Menu1.Checked = Datatable.Rows(0).Item("Menu1")
Menu2.Checked = Datatable.Rows(0).Item("Menu2")
where Datatable is the Datatable you used to store data from your select Statement
.Item("Menu1") - Table Column Name
On your Main Form, call security form laod event first to activate the form,
Call FrmSecurity.FrmSecurity_Load(sender,e)
Set the Combobox Selected Value to groupName of the user
FrmSecurity.Combobox.SelectedValue = 'UserGroupName'
Then Set the Status of your Menus:
If FrmSecurity.Menu1.Checked = True then
FrmMain.Menu1.Enable = True
Else
FrmMain.Menu1.Enabled = False
End If
Do all for your menus. This could take a lot of codes depending on your menu.