I have a simple login form that when a successful login occurs the main form opens (FrmHome).
The login form uses details found in a "Users" Table, Fields [Name] [Password] and [Group]
So, on the home page I need to put a button that will only allow users from the group super
to open the relevant form
The code used to open the form on button click looks like this.
Private Sub BtnAddNewEmp_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BtnAddNewEmp.Click
Dim FrmAddEmployee_inst As New FrmAddEmployee 'replace Form2 with the class name of the form you're trying to open
How do I get the App to assign the group to the person logged in and apply it to this button?