J
John
I am trying to limit who can sign on from an Employees table where
their username and status is kept. Below is what I have so far. The
SELECT statement returns the information in sql server 2005 as
expected. The gUsername also provides the correct info.
Dim secure_id As Variant
secure_id = "SELECT Status, Username FROM Employees WHERE Username =
'" & gUsername & "' AND Status <> 'Former'"
If the info doesn't match who signed in then the application will
close. What I am struggling with is putting the information into an
IF...Then...Else....End If statement and ask for someone to get me
started in the right direction. I am draw a blank. It must be too
many hours and not enough sleep or desperate need of a vacation.
Thanks...John
their username and status is kept. Below is what I have so far. The
SELECT statement returns the information in sql server 2005 as
expected. The gUsername also provides the correct info.
Dim secure_id As Variant
secure_id = "SELECT Status, Username FROM Employees WHERE Username =
'" & gUsername & "' AND Status <> 'Former'"
If the info doesn't match who signed in then the application will
close. What I am struggling with is putting the information into an
IF...Then...Else....End If statement and ask for someone to get me
started in the right direction. I am draw a blank. It must be too
many hours and not enough sleep or desperate need of a vacation.
Thanks...John