It is possible for users to put single quotes in txtUserName by mistake or intentionally, so you need to protect the statement
.Open "SELECT * FROM Users WHERE Username= '" & Replace(frmLogin.txtUsername.Text, "'", "''") & "'"
You are still open to SQL injection, so the better way would be to parameterize the query.