initialiseDB()
sqlStr = "SELECT * FROM LoginTable"
command = New OleDbCommand()
command.CommandText = sqlStr
command.Connection = conn
reader = command.ExecuteReader()
my code halts at reader = command.executereader, and the error i get is that i am carrying out an invalid operation
the conn value i assign to command.connection is initialised in a function which i call called initialiseDB
i do not know why it stops here, can someone help me out?
sqlStr = "SELECT * FROM LoginTable"
command = New OleDbCommand()
command.CommandText = sqlStr
command.Connection = conn
reader = command.ExecuteReader()
my code halts at reader = command.executereader, and the error i get is that i am carrying out an invalid operation
the conn value i assign to command.connection is initialised in a function which i call called initialiseDB
i do not know why it stops here, can someone help me out?