Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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 May 2nd, 2006, 06:24 AM
Registered User
 
Join Date: Apr 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting error 0x800A03EA

Hi!
This ASP code portion works ,but as u can see that there is repeatition of the same code thrice.The blocked portion is where I tried to modularise the code but ended in an error 0x800A03EA.Please help me if u can
<%
dim strLocale,intPipePos,sLocName,strLocales

strLocale=trim(rs.fields("Locales"))
if ucase(strLocale)="ALL" then
    strLocales="ENG|KOR|JAP"
else
    intPipePos=instr(strlocale,"|")
    if intPipePos>0 then
      strLocale=left(strLocale,intPipePos-1)
      'FindLocale(strLocale)
       rs1.Open "SELECT * FROM Locale WHERE LocaleID='" & strLocale & "'",Con,adOpenKeyset ,adLockReadOnly ,adCmdText
      sLocName=ucase(rs1.Fields("LocaleName"))

      select case sLocName
        case "ENGLISH"
             strLocales="ENG"
        case "KOREAN"
             strLocales= "KOR"
        case "JAPANESE"
             strLocales= "JAP"
      end select
      rs1.close
      strLocales=strLocales & "|"
      strLocale=right(strLocale,(len(strLocale)-intPipePos))
      'FindLocale(strLocale)
      rs1.Open "SELECT * FROM Locale WHERE LocaleID='" & strLocale & "'",Con,adOpenKeyset ,adLockReadOnly ,adCmdText
      sLocName=ucase(rs1.Fields("LocaleName"))

      select case sLocName
        case "ENGLISH"
             strLocales= strLocales & "ENG"
        case "KOREAN"
             strLocales= strLocales & "KOR"
        case "JAPANESE"
             strLocales= strLocales & "JAP"
      end select
      rs1.close
    else
      'FindLocale(strLocale)
      rs1.Open "SELECT * FROM Locale WHERE LocaleID='" & strLocale & "'",Con,adOpenKeyset ,adLockReadOnly ,adCmdText
      sLocName=ucase(rs1.Fields("LocaleName"))

      select case sLocName
        case "ENGLISH"
             strLocales="ENG"
        case "KOREAN"
             strLocales= "KOR"
        case "JAPANESE"
             strLocales= "JAP"
      end select
      rs1.close
    end if
end if
'sub FindLocale(byval sLocaleID)
'Response.Write (sLocaleID)
'rs1.Open "SELECT * FROM Locale WHERE LocaleID='" & sLocaleID & "'",Con,adOpenKeyset ,adLockReadOnly ,adCmdText
'sLocName=ucase(rs1.Fields("LocaleName"))
'if strLocales<>"" then
 'strLocales=strlocales & "|"
'end if
'select case sLocName
'case "ENGLISH"
 ' strLocales=strLocales & "ENG"
'case "KOREAN"
  ' strLocales=strLocales & "KOR"
'case "JAPANESE"
     'strLocales=strLocales & "JAP"
'end select
'rs1.close
'end sub
%>
Thanks in advance
Regards
Radhika





Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert Query Error & Run-Time Error 3022 DavidWE Access 1 July 31st, 2008 11:17 AM
Ch 4: Parse error: syntax error, unexpected T_SL hanizar77 BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 0 June 23rd, 2008 09:17 PM
Microsoft VBScript compilation (0x800A03EA) - synt treasacrowe Classic ASP Databases 7 March 29th, 2007 10:53 PM
Microsoft VBScript compilation (0x800A03EA) srm_kumar ASP.NET 1.0 and 1.1 Basics 1 November 10th, 2006 01:42 PM
VBScript error 0x800A03EA Syntax error edbkegan3 Classic ASP Databases 2 March 29th, 2004 01:57 PM





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