Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > Classic ASP

Reply
 
LinkBack Thread Tools
Old July 20th, 2007, 10:52 AM   #1
New Member
 

Join Date: Mar 2007
Location: Newark
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 cpando1974 is on a distinguished road
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; July 20th, 2007 at 11:08 AM..
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 August 7th, 2007, 07:43 AM   #2
New Member
 

Join Date: Aug 2007
Location: UK
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 thriftyspider is on a distinguished road
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 August 7th, 2007, 08:00 AM   #3
New Member
 

Join Date: Mar 2007
Location: Newark
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 cpando1974 is on a distinguished road
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

Bookmarks

Tags
object required , error message


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
[SOLVED] Getting the "Microsoft JET Database Engine error '80040e14'" error. VegaLA Classic ASP 3 January 25th, 2008 08:12 PM
Another strange microsoft error Daniel The Café 9 October 25th, 2007 09:59 AM
Microsoft JET Database Engine path error bean_2k1 Databases 3 January 26th, 2007 03:49 AM
Please Help Fix This Error Message DannyP43 JavaScript 3 September 26th, 2006 06:04 PM
Error Message: TextBox accessman Databases 1 October 14th, 2005 09:07 PM


Search Engine Optimization by vBSEO 3.2.0 RC8