Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Agruments are of the wrong type, etc. error

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,37965
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Agruments are of the wrong type, etc. error
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Agruments are of the wrong type, etc. error - 9/21/2006 2:59:41 AM   
  user_s

 

Posts: 16
Score: 0
Joined: 9/13/2006
Status: offline
I get the following error with below problem code:
"Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another."


      

For testing purposes I've simplified temp_Output.txt to this:

      

But when I try to search using:

      
I get the above mentioned error.


Schema.ini looks like:

      

Thank you in advance for any insight.
 
 
Post #: 1
 
 RE: Agruments are of the wrong type, etc. error - 9/21/2006 3:26:34 AM   
  ebgreen


Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
quote:

But when I try to search using:
<input type="text" name="SymbolZ" value="" size="3" maxlength="3">
     


I don't understand? Do you mean when you enter a search value into the text field you get an error?

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to user_s)
 
 
Post #: 2
 
 RE: Agruments are of the wrong type, etc. error - 9/21/2006 3:28:02 AM   
  ebgreen


Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
Also, what specific line gives you the error?

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to ebgreen)
 
 
Post #: 3
 
 RE: Agruments are of the wrong type, etc. error - 9/21/2006 3:57:11 AM   
  user_s

 

Posts: 16
Score: 0
Joined: 9/13/2006
Status: offline
Sorry for not being clearer.

The following line:

objRecordSet.Filter = "OptionZ=" & strHolder & ""

Gives me:
"Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another."
Char 1, Code 0 error

Thanks.

(in reply to ebgreen)
 
 
Post #: 4
 
 RE: Agruments are of the wrong type, etc. error - 9/21/2006 3:59:42 AM   
  ebgreen


Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
Right above that line put this and verify that you see what you think you should:

MsgBox strHolder

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to user_s)
 
 
Post #: 5
 
 RE: Agruments are of the wrong type, etc. error - 9/21/2006 4:23:41 AM   
  user_s

 

Posts: 16
Score: 0
Joined: 9/13/2006
Status: offline
Yup, absolutely.

Here's code in entirely (for local testing purposes) [3 files]

[test.hta]

      


[temp_Output3.txt]

      

[Schema.ini]

      


Thanks again.

(in reply to ebgreen)
 
 
Post #: 6
 
 RE: Agruments are of the wrong type, etc. error - 9/21/2006 4:35:47 AM   
  ebgreen


Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
You have missing 's in the filter string. Change this line:

objRecordSet.Filter = "OptionZ=" & strHolder & ""

to this:

objRecordSet.Filter = "OptionZ='" & strHolder & "'"

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to user_s)
 
 
Post #: 7
 
 RE: Agruments are of the wrong type, etc. error - 9/21/2006 4:44:12 AM   
  user_s

 

Posts: 16
Score: 0
Joined: 9/13/2006
Status: offline
I am in your debt.

Thanks very much!

(in reply to ebgreen)
 
 
Post #: 8
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Agruments are of the wrong type, etc. error Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts