I have a table called CurrentDateAndTime. It consists of 1 field and 1 record. The field is called CurDateTime. It has an automatically filled in value from the function Now(). My db will be static not dynamic and this field will store when the db was last updated.
In my web page I have:
set objRS = Server.CreateObject ("ADODB.Recordset"
sql="SELECT CurDateTime FROM CurrentDateAndTime"
objRS.CursorLocation = adUseClient
objRS.Open sql, objConn, 3
objRS.MoveFirst
response.write objRS("CurDateTime"
objRS.close
This gives an error that says:
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
I know the record is in the db and the field is populated. What am I doing wrong!?
In my web page I have:
set objRS = Server.CreateObject ("ADODB.Recordset"
sql="SELECT CurDateTime FROM CurrentDateAndTime"
objRS.CursorLocation = adUseClient
objRS.Open sql, objConn, 3
objRS.MoveFirst
response.write objRS("CurDateTime"
objRS.close
This gives an error that says:
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
I know the record is in the db and the field is populated. What am I doing wrong!?