Advertisement

07.05.2007 at 02:25PM PDT, ID: 22678034
[x]
Attachment Details

Updating a record

Asked by bearpaws in Active Server Pages (ASP)

Below is a snippet of coding. I keep receiving the error: 450 wrong number of argument or invalid property assignment"
In the table:
    ClientName is nvarchar(65)
    MonthlyPaid is nvarchar(1)
   ExpireDate is datetime

I know my connection string is valid as are the values, vowners, vexpire, vpaid. I made sure with date using CDATE function.

     vsep = "'"
      set rsH = Server.CreateObject("ADODB.Connection")
       rsH.Open vconnect
       sqltxt = "Update Clients.dbo.ClientInfo set ClientName = " & vsep & vowners & vsep & _
                   '",MonthlyPaid = " & vsep & vpaid & vsep & _
                   ",ExpireDate = " & vsep & vexpire& vsep  & _                
                  "  where RecId = " & vsep & vrecid & vsep
        rsH.Execute(sqltxt)
Why am I getting this error? I sometimes recieve it when using a select statement and then the connection to execute the sql statement. This is very confusing as it executes correctly in QA.
Any help appreciated....


Start Free Trial
[+][-]07.05.2007 at 02:54PM PDT, ID: 19427736

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2007 at 02:56PM PDT, ID: 19427750

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2007 at 02:57PM PDT, ID: 19427754

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2007 at 02:58PM PDT, ID: 19427767

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Active Server Pages (ASP)
Sign Up Now!
Solution Provided By: _Stilgar_
Participating Experts: 4
Solution Grade: A
 
 
[+][-]07.05.2007 at 04:11PM PDT, ID: 19428298

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.05.2007 at 04:12PM PDT, ID: 19428303

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2007 at 03:43AM PDT, ID: 19430660

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.06.2007 at 03:49AM PDT, ID: 19430674

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2007 at 03:53AM PDT, ID: 19430690

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2007 at 04:05AM PDT, ID: 19430732

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.06.2007 at 07:22AM PDT, ID: 19431964

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.06.2007 at 07:30AM PDT, ID: 19432019

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32