Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 5th, 2004, 11:32 AM
Authorized User
 
Join Date: Sep 2003
Location: Wonderboom South, Pretoria, Gauteng, South Africa.
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
pierre@greywacke.co.za
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.
Reply With Quote
  #2 (permalink)  
Old February 5th, 2004, 12:43 PM
Imar's Avatar
Wrox Author
Points: 72,022, Level: 100
Points: 72,022, Level: 100 Points: 72,022, Level: 100 Points: 72,022, Level: 100
Activity: 100%
Activity: 100% Activity: 100% Activity: 100%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,076
Thanks: 80
Thanked 1,587 Times in 1,563 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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 04:24 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.