Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB Script on Win XP    .Parameters.Append .CreateParameter("@FirstName", adVarChar, adParamInput, 255)     bombs

Posted on 2006-06-13
8
Medium Priority
?
1,572 Views
Last Modified: 2008-01-09
I think something might have changed in the way VBS is interpreted by WSH or ???

The line in the question title
.Parameters.Append .CreateParameter("@FirstName", adVarChar, adParamInput, 255)
bombs with the error "arguments of the wrong type, out of range or are in conflict with each other"

Any ideas???  Thanks,
0
Comment
Question by:FatalErr
  • 4
  • 3
8 Comments
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 16898670
What makes you believe this to be the case?

Have you upgraded your operating system, or version of Windows Scripting Host?

Or has the database structure changed & your parameter data type now does not match the database column?

BFN,

fp.
0
 
LVL 1

Author Comment

by:FatalErr
ID: 16898835
It used to run before I started working here (supposedly).  It doesn't work now and no modifications I make to it prevent the error from occuring.  That's why I suspect the WSH change.  It matches my database column.  I made a table with 1 column and edited the stored proc to have only one parameter.
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 16898845
Which version of WSH are you now using, and which version where you using prior to your current location?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 1

Author Comment

by:FatalErr
ID: 16898859
How can I tell what version of WSH I'm using?   I have no info about the history.
0
 
LVL 16

Accepted Solution

by:
CWS (haripriya) earned 1500 total points
ID: 16900666
Replace your code with this:

.Parameters.Append .CreateParameter("FirstName", adVarChar, adParamInput, 255,variable1)
0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 16901396
What's "variable1"?
0
 
LVL 1

Author Comment

by:FatalErr
ID: 16904912
WSH (or whatever is handling this) won't evaluate the enums.  I used .Parameters.Append .CreateParameter("FirstName", 200, 3, 255) and it worked.  I went with the syntax suggestion because it was a syntax problem.  Thanks both of you for your help.  

0
 
LVL 35

Expert Comment

by:[ fanpages ]
ID: 16907758
Odd it worked before, and now it doesn't, in any respect.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question