If you use Option Explicit, you've probably seen this error:
Microsoft VBScript runtime error '800a01f4' Variable is undefined: '<variablename>' |
This usually means you created a variable somewhere in your script, but did not define it with a dim statement. Most commonly, this encompasses the ADO constants, such as adOpenForwardOnly and adLockOptimistic. This involves forgetting to include ADOVBS.inc or an alternative, which you can read about in
Article #2112. If you don't define those constants and you remove Option Explicit, you will get the following error (as described in
Article #2102):
ADODB.Connection error '800a0bb9' The application is using arguments that are of the wrong type, are out of acceptable range, or are in conflict with one another. |
If you are using ThisPage from Visual InterDev's PageObject, see
KB #190938 for information on resolving the issue (though my advice is to avoid 'thispage' altogether).