• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 356
  • Last Modified:

Quick One: Command Object

Here's a quick question...I need to know the correct thing to put in place of adByte. ad__?  My error is

Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'adByte'


          .Parameters.Append = .CreateParameter( "switching", adByte, adParamInput)
0
sarahZ
Asked:
sarahZ
  • 4
  • 3
  • 3
1 Solution
 
drittichCommented:
Try adChar
0
 
sarahZAuthor Commented:
Oops, I forgot one...the adDateTime (??) Thanks


.Parameters.Append = .CreateParameter( "reqsigdate", adDateTime, adParamInput)
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
sarahZAuthor Commented:
Oops, I forgot one...the adDateTime (??) Thanks


.Parameters.Append = .CreateParameter( "reqsigdate", adDateTime, adParamInput)
0
 
sarahZAuthor Commented:
drittich, ok...checking the links. thanks!
0
 
drittichCommented:
I think you would want adDBTimeStamp for that.
0
 
Nitin SontakkeDeveloperCommented:
I am sorry if i am distracting you from the original line of attack.

To the best of my knowledge and memory (which could be wrong) and going by the error you have supplied I have the following comment to make:

The adByte, adChar, etc are the constants declared in a Microsoft supplied file called "adoconstants.asp" or something on these lines.

You will need to include this in your ASP, if you are using these constants.

If you cannot find the file, you will require to use the numbers instead. You MAY find them in MSDN.

I wish i could be more accurate.


0
 
Nitin SontakkeDeveloperCommented:

Here is more accurate info:

The file you need is "adovbs.inc". I could find mine at following place:

C:\Program Files\Common Files\System\ado

0
 
Nitin SontakkeDeveloperCommented:

Here is more accurate info:

The file you need is "adovbs.inc". I could find mine at following place:

C:\Program Files\Common Files\System\ado

0
 
sarahZAuthor Commented:
yes! that was it, thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 4
  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now