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 February 5th, 2004, 11:32 AM
Authorized User
 
Join Date: Sep 2003
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Greywacke
Default JET Panic :/ what is wrong???

Error Type:
Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters.
/rpgcasino/scripts/functions.asp, line 63

Code:
With Response
    If gwPag = "0" Or gwPag = "1" Or gwPag = "5" Or gwPag = "6" Then
        .Write "var f = new Array();" & vbCrLf
        .Write "function selcountry() {" & vbCrLf
        .Write "    i = document.frm_racc.racc_country.selectedIndex;" & vbCrLf
        .Write "    document.images['flag'].src = 'iface/flags/' + i + '.gif';" & vbCrLf
        .Write "    loadstates(i);" & vbCrLf
        .Write "}" & vbCrLf
        .Write "var p = new Array();" & vbCrLf
        .Write "p[0] = '<-- No states/provinces available -->';" & vbCrLf
        Set gwRS = Server.CreateObject("ADODB.Recordset")
        Set gwRS1 = Server.CreateObject("ADODB.Recordset")
        SQLStr = "SELECT * FROM countries ORDER BY str_name ASC"
        gwRS.Open SQLStr, gwConn, adOpenDynamic, adLockOptimistic, adCmdText
        i = 1
        Do While Not gwRS.EOF
            .Write "p[" & i & "] = '"
            cid = gwRS("lng_id")
            SQLStr = "SELECT str_name FROM states WHERE lng_countryid = " & cid & " ORDER BY str_name ASC"
            gwRS1.Open SQLStr, gwConn, adOpenDynamic, adLockOptimistic, adCmdText ' line 63
            Do While Not gwRS1.EOF
                .Write Replace(gwRS1("str_name"),"'","\'") & ", "
                gwRS1.MoveNext
            Loop
            .Write "';" & vbCrLf
            gwRS1.Close
            i = i + 1
            gwRS.MoveNext
        Loop
        gwRS.Close
    ' more If statements for the other cases of gwpag
    End If
End With
basically what the hell is up with that? i am kinda starting to panic here... the adodb constants library is included in the global.asa, and the connection is set to Application("gwConn") at start of page... other scripts work perfectly, it's just this one which implicates that gwRS("lng_id") is returning a blank string, while in actual fact it is returning the country id (long number)???

any swift help to resolve this issue will be greatly appreciated...

Sincerely,
Pierre du Toit.
__________________
Sincerely,
Pierre "Greywacke" du Toit
[email protected]
don't worry about my 0 thankyou's either way, i would say thank you should you help, and i will gladly help others when this work rush is over.
 
Old February 5th, 2004, 12:43 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

Take a look at this FAQ:

http://www.adopenstatic.com/faq/80040e10.asp

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Jet OLEDB sureshkumarct Visual C++ 0 May 30th, 2006 02:00 AM
jet sql query help connect2sandep Access 4 October 28th, 2005 02:16 PM
Migrating from Jet to SQL Ray Pinnegar Access 2 October 8th, 2004 04:43 AM
distributing JET/OLE module0000 Beginning VB 6 2 June 26th, 2003 04:14 PM





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