In one of my table I have just one record with userid, username and password. But whenever I run the following code I receive this error message at line 3. Why?
Run-time error '3021':
Either BOF or EOf is true, or the current record
has been deleted. Requested operation requires a
current record.
---------------------------------------------
1 cmdText1 = "Select userid, R_username from gateway where R_username = '" & txtUsername.Text & "'"
2 Set rs_gateway = cn.Execute(cmdText1)
3 uid = rs_gateway!userid
4 uname = rs_gateway!r_username
--------------------------------------------
Rohit. There is always a new solution for the same problem.
Anonymous
Run-time error '3021':
Either BOF or EOf is true, or the current record
has been deleted. Requested operation requires a
current record.
---------------------------------------------
1 cmdText1 = "Select userid, R_username from gateway where R_username = '" & txtUsername.Text & "'"
2 Set rs_gateway = cn.Execute(cmdText1)
3 uid = rs_gateway!userid
4 uname = rs_gateway!r_username
--------------------------------------------
Rohit. There is always a new solution for the same problem.
Anonymous