Using Recordsets ASP / VBScript

by Nathan 29. March 2009 08:45

 

If you receive this error 

ADODB.Recordset error '800a0e78'

Operation is not allowed when the object is closed.

you will need to check the state of the recordset as in the code below before you access any properties of the object

 


if not oRs.state <> 1 then

        if not oRs.eof then

              if oRs("Value").Value > 0 then
                 myval = oRs("Value").Value
            else
           myval = 0     
            end if
        end if
    else
        Response.Write "Cannot find any records"
    end if
   

Tags: ,

ASP

Comments

8/15/2009 2:33:55 AM #

Rolex Oyster Perpetual Datejust

Tried to autotranslate you site not understand the writing any hope deutsch version?

Rolex Oyster Perpetual Datejust United States

8/17/2009 12:59:36 AM #

Womens Godltone Champagne Dial

I would like to add your blog to my blogroll please tell me what anchor should I use?

Womens Godltone Champagne Dial United States

8/18/2009 10:25:52 PM #

Esq By Movado Mens

I think you have to improve a bit the design and usability of your blog.

Esq By Movado Mens United States

8/27/2009 11:27:12 AM #

Baume Mercier Classima

I am quite interesting in this topic hope you will elaborate more on it in future posts.

Baume Mercier Classima United States

8/28/2009 7:15:13 AM #

bad credit loans

Hey very nice blog!! Man .. Beautiful .. Amazing .. I will bookmark your blog and take the feeds also...

bad credit loans United States

12/1/2009 2:48:35 AM #

reverse number lookup

Wow, thanks for this. You seem to be quite the expert in this category. I'll stop by more often.

reverse number lookup United States

12/20/2009 12:26:39 AM #

tetris game

Advantageously, the article is really the best on this worthy topic. I agree with your conclusions and will thirstily look forward to your next updates. Saying tnx will not just be adequate, for the phenomenal clarity in your writing. I will at once grab your feeds to stay privy of any updates. Delightful work and much success in your business efforts! Cheers, Michael.

tetris game

12/26/2009 10:31:45 PM #

Aaliyah

That is some inspirational stuff. Never knew that opinions could be this varied. Thanks for all the enthusiasm to offer such helpful information here.

Aaliyah United States

1/2/2010 5:04:58 PM #

Proactol Review

That is some inspirational stuff. Never knew that opinions could be this varied. Thanks for all the enthusiasm to offer such helpful information here.

Proactol Review United States

1/18/2010 11:41:47 PM #

Bill Bartmann

I usually don’t post on Blogs but ya forced me to, great info.. excellent! … I'll add a backlink and bookmark your site.

Bill Bartmann United States

1/25/2010 12:49:36 AM #

business hosting

Such a well written post! Thanks for sharing this information.

business hosting

1/28/2010 5:34:48 AM #

louisbweaver80

You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and very broad for me. I am looking forward for your next post, I will try to get the hang of it!

louisbweaver80 United States

1/30/2010 5:07:51 PM #

seo link building

Well, this is my first visit to your blog! We are a group of volunteers and starting a new initiative in a community in the same niche. Your blog provided us valuable information to work on. You have done a marvellous job!

seo link building

2/2/2010 7:13:02 PM #

<A href="http://www.beautypiggy.com">Lannie Ukich</A>

<P class=MsoNormal style="MARGIN: 0in 0in 10pt"><SPAN style="FONT-SIZE: 10pt; LINE-HEIGHT: 115%; FONT-FAMILY: 'Arial','sans-serif'">Indeed…<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>

<A href="http://www.beautypiggy.com">Lannie Ukich</A> United States

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.6.0.0
Theme by Mads Kristensen