But when I want to assign the value to a defined integer variable, the value is '0', which is not correct because it should be '2'
I used the following code:
dim UserRights as Integer
UserRights = DSUsers.Tables("tblUsers").Rows(0)("RightsID")
I found another way to get to the same result, but I still am interested to know why I can't assign that value to the variable.
The problem is in Form1 and in the Sub 'Checkuser'. It are the last two lines which I commented.
The sourcecode is added and the database is added in the next post (I only added the userdatabase because the other database is not necessary for this specific problem).