Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 21st, 2005, 04:46 AM
Authorized User
 
Join Date: Aug 2005
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Default Recordset Error

I know this must be so easy but I keep getting the wrong output.

I have a LOGIN PAGE, LOGGED IN PAGE and an ACCESS DATABASE.

When you login, a message should come up and say,
"Good evening Mally"

Instead when you login, a message comes up saying,
"Good evening
ADODB.Field error '800a0bcd'
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/html/search.asp, line 272"

Line 272 reads
<%=(Recordset1.Fields.Item("ChristianName").Value) %>

I have a recordset in the LOGGED IN PAGE,
SELECT ChristianName
FROM tblUsers
WHERE ChristianName = 'MMColParam'
MMColParam 1 Session("ChristianName")

In the login page I have no recordset. All I have is the 'User Authentication LOGIN USER'.

Any suggestions?

 
Old December 21st, 2005, 05:25 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Same advice as previous posts:

Use Response.Write(myRecordset.Source) and diagnose the resulting SQL statement.

I think you're querying again for the text 'MMColParam' and not for that variable's value.

Cheers,

Imar
 
Old December 21st, 2005, 05:59 AM
Authorized User
 
Join Date: Aug 2005
Posts: 96
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes thats true.

Did try, came up with this.

Microsoft VBScript compilation error '800a0401'
Expected end of statement
/html/search.asp, line 53
Response.End()Recordset1.CursorType = 0
--------------^

Can you suggest what it may be?

Mally.


 
Old December 21st, 2005, 05:06 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Does the error message not give you a clue?

Response.End()Recordset1.CursorType = 0

Should be on two lines....

Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
recordset open error MMJiggy62 Beginning VB 6 2 September 4th, 2006 04:52 PM
Recordset (0x800A0BB9) - ERROR myself Classic ASP Professional 1 August 17th, 2006 12:30 AM
Get the error "ADODB.Recordset error '800a0e7d' " Raymond Classic ASP Databases 2 August 5th, 2006 03:53 PM
Error When Deleting Recordset arimakidd Classic ASP Databases 3 May 22nd, 2006 10:59 AM
Recordset error lance Access ASP 1 February 17th, 2004 07:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.