Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics 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 August 14th, 2007, 02:41 PM
Registered User
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Arguments are of the wrong type, are out of accep

I have a place on our site where you can set-up a meeting and also be able to edit the fields. One field is for future announcements that holds 2500 characters, since the other fields in the table add up to 4000 or more we cannot set this field to 5000 characters. I created another table and added a pk and an eventsev field, but now I am having problems getting the field to update. Here is my code - help!


If request.form("b4") = "Next Page" then
        Set objConn = ficpa.getNetLinkDBConnection()

strSQL = "SELECT * FROM chapmeetreq2 WHERE chapter = '" & session("chap") & "' and entrydate = '" & date() & "' order by req_id desc"



strSQL = "SELECT * FROM chapmeetreq2 inner JOIN chapmeetreq2ev ON chapmeetreq2.req_id = chapmeetreq2ev.req_id WHERE (chapmeetreq2.chapter = '" & session("chap") & "') AND (chapmeetreq2.entrydate = '" & date() & "') ORDER BY chapmeetreq2.req_id DESC"



     set objRS2= Server.CreateObject("ADODB.Recordset")
        objRS2.Open strSQL2, objConn, 3, 3


    req_id = objrs2("req_id")
    session("req_id") = req_id
     req_id = objrs2("req_id")

    if request.form("eventsev") <> "" then
        objRS2.fields("eventsev") = request.form("events")
    else
        objRS2.fields("eventsev") = ""
    end if

    objRS2.Update
    objRS2.Close
    objrs.close
    set objrs2= nothing
    Set objRS = Nothing
    response.redirect("/ficpa/members/chapters/toolkit/chaptermeetingnotice2/page5")
end if
%>


 
Old August 14th, 2007, 02:48 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

this looks like vbscript... I'm right??

also you are not specifying where the error happens...

are you sure that your select work???

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========
 
Old August 14th, 2007, 02:53 PM
Registered User
 
Join Date: Aug 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't actually know where the error is. I don't know where to look for that. It doesn't give it to me on the error report. Jen

 
Old August 14th, 2007, 03:00 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

well.. first of all.. just an idea, try to trace the code and see if the query is ok... maybe the wrong parameter is there....

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========
I know that CVS was evil, and now i got the proof:
http://worsethanfailure.com/Articles...-Hate-You.aspx
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
arguments relay pierre.voisin Javascript 1 February 20th, 2008 06:04 PM
Arguments are of the wrong type???? Seb_soum Classic ASP Databases 12 November 9th, 2006 02:20 PM
CreateParameter - wrong type rit01 Classic ASP Databases 2 February 2nd, 2006 08:39 PM
Query on the wrong data type ggiibboo VB Databases Basics 1 January 31st, 2006 07:44 PM
Arguments snowy0 VB.NET 2002/2003 Basics 3 September 3rd, 2004 08:40 AM





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