vb.net - Visual basic database login: manager and admin logins -
i have code open form if login credentials matches database. dont know how add separate login manager. in database made column yes/no called ismanager , checked 1 of users cant seem if checked , open different form. can please improve code make change? public class login public function login() 'save database file in u:\my documents\visual studio 2008\projects\sequenceselectionrepetition\sequenceselectionrepetition\bin\debug 'right-click sequenceselectionrepetition solution explorer , select add reference 'choose com , choose microsoft activex daba objects 2.5 library dim dbconn new adodb.connection dim users new adodb.recordset dim username string dim userdb string dim passdb string dim userfound boolean dbconn.open("provider = microsoft.ace.oledb.12.0;" & "data source = '" & application.startuppath & "\capsule staff.accdb'") users.open("credentials", dbconn, ado...