what is wrong-what do i do

This is a discussion on "what is wrong-what do i do" within the Classic ASP section. This forum, and the thread "what is wrong-what do i do are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jun 2nd, 2005, 19:24
New Member
Join Date: Jun 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
what is wrong-what do i do

Hi, I am trying to make a registration page for my site and every time I try to view it in my local host i get this

Error Type:
ADODB.Field (0x800A0BCD)
Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record.
/1080design/registration.asp, line 163


I thought I created it right, but I dont Know-I know its probably simple, but can some one help me and explain to me what i need to do to fix this and get my registration page working.

Thanks
Mark

  #2 (permalink)  
Old Jun 2nd, 2005, 20:13
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
Looks like your recordset is empty and you tried to do something with it. Check your query is actually returning something.
  #3 (permalink)  
Old Jun 3rd, 2005, 00:22
New Member
Join Date: Jun 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
can you expand on that-im still confused not sure what you mean. For instance what should I look at exactly. Im still new to this stuff.

Thanks
Mark
  #4 (permalink)  
Old Jun 3rd, 2005, 00:30
New Member
Join Date: Jun 2005
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
This is what i get. What does this mean-I am so confused. Please Help if you can!


Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: ''
/1080design/registration.asp, line 163

Thanks
Mark
  #5 (permalink)  
Old Jun 3rd, 2005, 09:15
benbacardi's Avatar
Highly Reputable Member
Join Date: Feb 2004
Location: United Kingdom
Age: 20
Posts: 611
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to benbacardi Send a message via Skype™ to benbacardi
for your first problem....

presumably you are connecting to a database, and trying to output results?

before you can output anything, you need to check the database has actually returned something. you can do this by using ASPs built in EOF function. EOF means End of File. If you are opening a recordset, and then outputing data, use an if statement to check that you have actually got data before outputting it:

Code: Select all
rs = 'RECORDSET THAT IS OPEN

if rs.EOF = FALSE then

'CODE TO DISPLAY RECORDSET INFORMATION

else

response.write "The query returned no results"

end if
Closed Thread

Tags
wrongwhat

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
What am I doing wrong?? PunkManager Starting Out 3 Sep 4th, 2007 12:54
Something wrong Daniel Webforumz Cafe 11 Jul 20th, 2007 18:08
Where am I going wrong? JamesQ Flash & Multimedia Forum 6 Jun 5th, 2007 15:05
What's gone wrong? Alsilver Web Page Design 2 Oct 22nd, 2006 14:11
what am i doing wrong? bsadaz Web Page Design 4 Oct 16th, 2006 11:41


All times are GMT. The time now is 21:00.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43