Web Design and Development Forums

Keep getting error message Microsoft VBScript runtime error '800a01a8'

This is a discussion on "Keep getting error message Microsoft VBScript runtime error '800a01a8'" within the ASP Forum section. This forum, and the thread "Keep getting error message Microsoft VBScript runtime error '800a01a8' are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > ASP Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Jul 20th, 2007, 14:52   #1 (permalink)
Junior Member
 
Join Date: Mar 2007
Location: Newark
Posts: 13
Keep getting error message Microsoft VBScript runtime error '800a01a8'

Hi,

Getting the following error message:


Microsoft VBScript runtime error '800a01a8'
Object required /cpa/dt-new/updater2b.asp, line 40

A little baffled and I just cannot see where the problem is, I know its going to be something simple! The code is below and the last line is line 40.

Dim strConn, objConn, strMonthEnd, strDate
Dim objRS_Teams, strQ_Teams, objRS_TeamPlayers, strQ_TeamPlayers, strQ_TeamUpdate
Dim strQ_MOM, objRS_MOM, strQ_WOM, objRS_WOM, strQ_MOMUpdate, strQ_WOMUpdate, strQ_MonthEnd
Dim arrTeamPlayers(12,2), strTeamSN, strTeamScore, strTeamScoreDiff, strGkScore, strDefScore, strMidScore, strStrScore, strPresMonth
Dim strMonthEndScore, strTeamPlayerID, strTeamPlayersCounter, strPositionOld, strPositionNew, strMovement, strPositionCounter
Dim strMOMPtsCheck, strWOMPtsCheck
Dim strLeagueCount
Dim strLeague
'***** Open db connection *****
Set objConn = Server.CreateObject("ADODB.Connection")
strConn = "DRIVER={MySQL ODBC 3.51 Driver}; SERVER=mysql10.streamline.net; DATABASE=**********; UID=**********;PASSWORD=**********; OPTION=3"
objConn.Open strConn
'***** Retrieve month end from form *****
strMonthEnd = Trim(Request.Querystring("monthEnd"))
'************************************************* ************************************************** ****************************
'************************* Update teams from PLAYERS db *************************
'***** Loop through the leagues *****
For strLeagueCount = 1 to 2
'***** Determine which league to update. Count 1 = BCP and Count 2 = LOD *****
If strLeagueCount = 1 Then
strLeague = "bcp"
ElseIf strleagueCount = 2 Then
strLeague = "lod"
End If

strQ_Teams = "SELECT * FROM tbldt200708B WHERE league='" & strLeague & "'"
Set objRS_Teams = objConn.Execute(strQ_Teams)


Any help will be much appreciated.

Thanks

Chris

Last edited by cpando1974; Jul 20th, 2007 at 15:08.
cpando1974 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 7th, 2007, 11:43   #2 (permalink)
Junior Member
 
Join Date: Aug 2007
Location: UK
Posts: 13
Re: Keep getting error message Microsoft VBScript runtime error '800a01a8'

Not too sure (fairly new to ASP myself), but '" & strLeague & "'" does not look quite right shouldn't the & signs be outside the quotes when your doing concatenation? i.e. strQ_Teams = "SELECT * FROM tbldt200708B WHERE league=' & "strLeague" &"

Rob
thriftyspider is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Aug 7th, 2007, 12:00   #3 (permalink)
Junior Member
 
Join Date: Mar 2007
Location: Newark
Posts: 13
Re: Keep getting error message Microsoft VBScript runtime error '800a01a8'

Apologies, forgot to post I had figured it out just recently.

Bit of a numty really. Further down the page I had closed off the SQL connection before the loop ended instead of after it, so when it looped back round, there was no connection.
cpando1974 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
object required, error message

Thread Tools
Rate This Thread
Rate This Thread:

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
[SOLVED] Getting the "Microsoft JET Database Engine error '80040e14'" error. VegaLA ASP Forum 3 Jan 26th, 2008 00:12
Another strange microsoft error Daniel Webforumz Cafe 9 Oct 25th, 2007 13:59
Microsoft JET Database Engine path error bean_2k1 MSSQL & Access 3 Jan 26th, 2007 07:49
Please Help Fix This Error Message DannyP43 JavaScript Forum 3 Sep 26th, 2006 22:04
error message cant get straight monkboy12345 PHP Forum 1 Apr 15th, 2005 21:34



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 07:31.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59