Do not use on any
shared computer
September 6, 2008 03:15pm pdt
 
[x]
Attachment Details

Invalid string or buffer length

Tags: asp, ie 7.0, private page
This is definately a Monday morning question.  I can't find the invalid string in this, can someone give a fresh set of eyes to it.  It's giving me this error.

Microsoft OLE DB Provider for ODBC Drivers error '80040e57'

[Microsoft][ODBC Microsoft Access Driver]Invalid string or buffer length

/loanrates.asp, line 89


Line 89 is the execute command at the end of the code snippet.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
MM_editCmd.ActiveConnection = MM_KNBSecure_STRING
    MM_editCmd.CommandText = "UPDATE LoanRates SET con40yearrate = ?, con40yearpoints = ?, con40yearorg = ?, con30yearrate = ?, con30yearpoints = ?, con30yearorg = ?, con20yearrate = ?, con20yearpoints = ?, con20yearorg = ?, con15yearrate = ?, con15yearpoints = ?, con15yearorg = ?, va30yearrate = ?, va30yearpoints = ?, va30yearorg = ?, va15yearrate = ?, va15yearpoints = ?, va15yearorg = ?, flex100rate = ?, flex100points = ?, flex100org = ?, mycomrate = ?, mycompoints = ?, mycomorg = ?, ar1yearrate = ?, ar1yearpoints = ?, ar1yearorg = ?, va3yearrate = ?, va3yearpoints = ?, va3yearorg = ?, arm1yestreasury = ?, margin = ?, kyhousingfhawrate = ?, kyhousingfhawpoints = ?, kyhousingfhaworg = ?, kyhousingfhaworate = ?, kyhousingfhawopoints = ?, kyhousingfhawoorg = ?, kyhousingconvwrate = ?, kyhousingconvwpoints = ?, kyhousingconvworg = ?, kyhousingconvworate = ?, kyhousingconvwopoints = ?, kyhousingconvwoorg = ?, datechanged = ?, loanspecial = ?, loanspecialpoints = ?, loanspecialorg = ?, loanspecialw = ?, loanspecialwpoints = ?, loanspecialworg = ?, fha30yearrate = ?, fha30yearpoints = ?, fha30yearorg = ?, fha15yearrate = ?, fha15yearpoints = ?, fha15yearorg = ?, WHERE id = 1" 
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 1, 50, Request.Form("con40yearrate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 202, 1, 50, Request.Form("con40yearpoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param3", 202, 1, 50, Request.Form("con40yearorg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param4", 202, 1, 50, Request.Form("con30yearrate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param5", 202, 1, 50, Request.Form("con30yearpoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param6", 202, 1, 50, Request.Form("con30yearorg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param7", 202, 1, 50, Request.Form("con20yearrate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param8", 202, 1, 50, Request.Form("con20yearpoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param9", 202, 1, 50, Request.Form("con20yearorg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param10", 202, 1, 50, Request.Form("con15yearrate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param11", 202, 1, 50, Request.Form("con15yearpoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param12", 202, 1, 50, Request.Form("con15yearorg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param13", 202, 1, 50, Request.Form("va30yearrate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param14", 202, 1, 50, Request.Form("va30yearpoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param15", 202, 1, 50, Request.Form("va30yearorg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param16", 202, 1, 50, Request.Form("va15yearrate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param17", 202, 1, 50, Request.Form("va15yearpoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param18", 202, 1, 50, Request.Form("va15yearorg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param19", 202, 1, 50, Request.Form("flex100rate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param20", 202, 1, 50, Request.Form("flex100points")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param21", 202, 1, 50, Request.Form("flex100org")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param22", 202, 1, 50, Request.Form("mycomrate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param23", 202, 1, 50, Request.Form("mycompoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param24", 202, 1, 50, Request.Form("mycomorg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param25", 202, 1, 50, Request.Form("ar1yearrate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param26", 202, 1, 50, Request.Form("ar1yearpoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param27", 202, 1, 50, Request.Form("ar1yearorg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param28", 202, 1, 50, Request.Form("va3yearrate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param29", 202, 1, 50, Request.Form("va3yearpoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param30", 202, 1, 50, Request.Form("va3yearorg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param31", 202, 1, 50, Request.Form("arm1yestreasury")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param32", 202, 1, 50, Request.Form("margin")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param33", 202, 1, 50, Request.Form("kyhousingfhawrate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param34", 202, 1, 50, Request.Form("kyhousingfhawpoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param35", 202, 1, 50, Request.Form("kyhousingfhaworg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param36", 202, 1, 50, Request.Form("kyhousingfhaworate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param37", 202, 1, 50, Request.Form("kyhousingfhawopoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param38", 202, 1, 50, Request.Form("kyhousingfhawoorg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param39", 202, 1, 50, Request.Form("kyhousingconvwrate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param40", 202, 1, 50, Request.Form("kyhousingconvwpoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param41", 202, 1, 50, Request.Form("kyhousingconvworg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param42", 202, 1, 50, Request.Form("kyhousingconvworate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param43", 202, 1, 50, Request.Form("kyhousingconvwopoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param44", 202, 1, 50, Request.Form("kyhousingconvwoorg")) ' adVarWChar
	MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param45", adDate, adParamInput, , Now) 
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param46", 202, 1, 50, Request.Form("loanspecial")) ' adVarWChar
	MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param47", 202, 1, 50, Request.Form("loanspecialpoints")) ' adVarWChar
	MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param48", 202, 1, 50, Request.Form("loanspecialorg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param49", 202, 1, 50, Request.Form("loanspecialw")) ' adVarWChar
	MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param50", 202, 1, 50, Request.Form("loanspecialwpoints")) ' adVarWChar
	MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param51", 202, 1, 50, Request.Form("loanspecialworg")) ' adVarWChar	
	MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param52", 202, 1, 50, Request.Form("fha30yearrate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param53", 202, 1, 50, Request.Form("fha30yearpoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param54", 202, 1, 50, Request.Form("fha30yearorg")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param55", 202, 1, 50, Request.Form("fha15yearrate")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param56", 202, 1, 50, Request.Form("fha15yearpoints")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param57", 202, 1, 50, Request.Form("fha15yearorg")) ' adVarWChar
	MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
Start your free trial to view this solution
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

Question Stats
Zone: Web Development
Question Asked By: ibtaya
Solution Provided By: masa77
Participating Experts: 1
Solution Grade: A
Views: 4
Translate:
Loading Advertisement...
 
[+][-]Expert Comment by masa77
Expert Comment by masa77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by masa77
Expert Comment by masa77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by ibtaya
Author Comment by ibtaya:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by masa77
Expert Comment by masa77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by ibtaya
Author Comment by ibtaya:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by masa77
Expert Comment by masa77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by masa77
Expert Comment by masa77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by ibtaya
Author Comment by ibtaya:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by masa77
Expert Comment by masa77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by ibtaya
Author Comment by ibtaya:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Expert Comment by masa77
Expert Comment by masa77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Author Comment by ibtaya
Author Comment by ibtaya:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
[+][-]Accepted Solution by masa77
Accepted Solution by masa77:

All comments and solutions are available to Premium Service Members only.

Start your 7-day free trial and see for yourself why Experts Exchange is the easiest and most proven technology resource in the world. Get Started

Already a member? Login to view this solution.

 
 
Loading Advertisement...
Open Discussion
Open Discussion
 
Comment by masa77
Okay...
Have had the same headache myself too, nowdays when install new workstation or have new profile, will first go and change the setting from ie...and then customers cry...why the page wont get refreshed...uups... and after it have modified code's so that the pages will get old after opening.
first rows in asp pages

Response.Expires = 0
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
 
 
20080723-EE-VQP-34 / EE_QW_2_20070628