I'm using VB trying to access a database in MSACCESS.
I'm doing this really dumb thing:
SSQL9 = "select Username as docuser from Doctors where TreatmentField = '"&Treatment&"'" set Rs9 = Server.CreateObject("ADODB.recordset") Rs9.open SSQL9,conn Something=Rs9("docuser") Response.Write(Something) And for some reason I get:
ADODB.Field error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
While I'm sure there is a record. What causes the error?
.EOFand the.BOFproperties of the record set areTrue, then the record set is empty, even if you expect something else.Treatmentvariable has an apostrophe in it? Make sure you think that through carefully.WHERE TreatmentField='OBGYN'? Also you might like to consider cursor types when you get this problem solved : w3schools.com/ADO/met_rs_open.asp Not all cursor type support all actions. It can be useful toResponse.Write(SSQL9)and run it through Access, being careful about wildcards. It can also be useful toResponse.Write(rs9(0).Name)If it is any consolation, it is probably some simple problem that you will kick yourself about :)