This article mainly introduces the error code list of Microsoft VBScript compiler errors. Friends in need can refer to it.
Microsoft VBScript Compiler Error Error'' Missing statement
ActiveServerPages,ASP0126(0x80004005)-->Cannot find include file
MicrosoftOLEDBProviderforODBCDrivers(0x80040E21)-->SQL statement error (data type mismatch or table name (field name) error or table is in editing state, or table does not exist in the database opened by conn)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E14)-->SQL statement error (field name error, or data type mismatch)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E07)-->SQL statement error (the type of the field to be inserted or updated does not match the variable data type)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E57)-->SQL statement error (data to be inserted or updated overflows)
MicrosoftOLEDBProviderforODBCDrivers(0x80040E10)-->SQL statement error (update field name or data type to be updated is wrong)
MicrosoftOLEDBProviderforODBCDrivers(0x80004005)-->SQL statement error (the value of the field to be inserted or updated cannot be null)
MicrosoftOLEDBProviderforODBCDrivers(0x80004005) -->Error opening database, no database found in the specified directory
MicrosoftOLEDBProviderforODBCDrivers(0x80040E37)-->No table found
MicrosoftVBscript runtime error (0x800A000D) --> Error referencing rs variable (rs object is closed or undefined)
MicrosoftVBscript runtime error (0x800A01C2)-->vbscript script error (vbscript statement error)
MicrosoftVBscript runtime error (0x800A0006)-->vbscript script error (overflow error)
MicrosoftVBscript compiler error (0x800A040E)-->missing loop
MicrosoftVBscript compiler error (0x800A03EA) --> missing if or endif
MicrosoftVBscript compiler error (0x800A03EE) --> statement not ended (missing))
MicrosoftVBscript compiler error (0x800A03F6)-->if statement error (missing endif)
MicrosoftVBscript runtime error (0x800A005B) --> set is missing
MicrosoftVBscript runtime error (0x800A0005)-->Variable is not defined
MicrosoftVBscript compiler error (0x800A03F9)-->if statement is missing then
MicrosoftVBscript compiler error (0x800A0411)-->dim statement definition error
MicrosoftVBscript compiler error (0x800A0408)-->sql statement error (?????????????????)
Microsoft VBScript runtime error (0x800A01B6) error reason: set rs=server.create...You are missing set
ADODB.Recordset(0x800A0BB9)-->SQL statement error (SQL statement or conn statement is not defined or an error occurs when assigning a value to an rs attribute)
ADODB.Recordset(0x800A0CC1)-->rs object error (rs object itself does not exist or incorrectly references a non-existent field name)
ADODB.Recordset(0x800A0BCD)-->rs object error (there is no record in the record set but the record set is operated)
ADODB.Recordset(0x800A0E78)-->rs object error (record set does not exist, rs.open statement is missing)
ADODB.Recordset(0x800A0CC1) --> rs object error (referencing a non-existent field name)
ADODB.Recordset(0x800A0E7D)-->conn definition error
ADODB.Recordset(0x800A0CB3)-->The database is opened in read-only mode and the data cannot be updated.
A VBScript syntax error occurs if the VBScript statement structure violates one or more VBScript scripting language syntax rules.
Errors usually occur when compiling a program before executing it. Here are 53 syntax errors:
Error number description
Decimal Hexadecimal Description
1001 800A03E9 Insufficient memory
1002 800A03EA Syntax error
1003 800A03EB is missing:
1005 800A03ED requires '('
1006 800A03EE requires ')'
1007 800A03EF missing]
1010 800A03F2 Identifier required
1011 800A03F3 requires '='
1012 800A03F4 requires 'If'
1013 800A03F5 requires 'To'
1014 800A03F6 requires 'End'
1015 800A03F7 requires 'Function'
1016 800A03F8 requires 'Sub'
1017 800A03F9 requires 'Then'
1018 800A03FA requires 'Wend'
1019 800A03FB requires 'Loop'
1020 800A03FC requires 'Next'
1021 800A03FD requires 'Case'
1022 800A03FE requires 'Select'
1023 800A03FF requires expression
1024 800A0400 Statement required
1025 800A0401 End of statement required
1026 800A0402 requires integer constant
1027 800A0403 requires 'While' or 'Until'
1028 800A0404 requires 'While,', 'Until,' or the statement is not ended.
1029 800A0405 requires 'With'
1030 800A0406 Identifier is too long
1031 800A0407 Invalid number
1032 800A0408 Invalid character
1033 800A0409 Unterminated string constant
1034 800A040A Unfinished comment
1037 800A040D Invalid use of keyword 'Me'
1038 800A040E 'loop' no 'do'
1039 800A040F Invalid 'exit' statement
1040 800A0410 Invalid 'for' loop control variable
1041 800A0411 Name redefinition
1042 800A0412 Must be the first statement of the line
1043 800A0413 cannot be assigned to non-Byval parameters.
1044 800A0414 Parentheses cannot be used when calling Sub
1045 800A0415 Literal constant required
1046 800A0416 requires 'In'
1047 800A0417 requires 'Class'
1048 800A0418 must be defined inside a class
1049 800A0419 Let, Set or Get is required in attribute declaration
1050 800A041A requires 'Property'
1051 800A041B The number of parameters must be consistent with the attribute description.
1052 800A041C There cannot be multiple default attributes/methods in a class
1053 800A041D Class initialization or termination cannot take parameters.
1054 800A041E Property Let or Set should have at least one parameter
1055 800A041F Unnecessary 'Next'
1056 800A0420 'Default' can only be specified on 'Property' or 'Function' or 'Sub'
1057 800A0421 When specifying 'Default', 'Public' must also be specified.
1058 800A0422 'Default' can only be specified in Property Get
VBScript runtime errors
A VBScript runtime error occurs if a VBScript script performs an operation that the system cannot perform. Only when running a script, assigning a value to a variable expression, or
VBScript runtime errors occur only when memory is allocated. Here are the 65 runtime errors:
Error number description
Decimal hexadecimal explanation
5 800A0005 Invalid procedure call or parameter
6 800A0006 Overflow
7 800A0007 Insufficient memory
9 800A0009 Subscript out of bounds
10 800A000A The array is fixed-length or temporarily locked.
11 800A000B divided by zero
13 800A000D Type mismatch
14 800A000E String space overflow
17 800A0011 Unable to perform the requested operation
28 800A001C Stack overflow
35 800A0023 Sub or Function is not defined
48 800A0030 Loading DLL error
51 800A0033 Internal error
52 800A0034 Bad file name or number
53 800A0035 File not found
54 800A0036 Bad file mode
55 800A0037 The file has been opened
57 800A0039 Device I/O error
58 800A003A file already exists
61 800A003D Disk space is full
62 800A003E The input exceeds the end of the file.
67 800A0043 Too many files
68 800A0044 Device is not available
70 800A0046 Permission disabled
71 800A0047 Disk not ready
74 800A004A cannot be renamed with a different drive
75 800A004B Path/file access error
76 800A004C Path not found
91 800A005B Object variable not set
92 800A005C For loop is not initialized
94 800A005E Illegal use of Null
322 800A0142 The required temporary file cannot be created
424 800A01A8 Object required
429 800A01AD ActiveX component cannot create object
430 Class 800A01AE does not support automation
432 800A01B0 File name or class name not found in automation operation
438 800A01B6 The object does not support this property or method.
440 800A01B8 Automation error
445 800A01BD object does not support this operation
446 800A01BE The object does not support the specified parameters.
447 800A01BF The object does not support the current locale settings.
448 800A01C0 Named parameter not found
449 800A01C1 parameter is not optional
450 800A01C2 Wrong number of parameters or invalid parameter attribute value
451 800A01C3 The object is not a collection
453 800A01C5 The specified dll function was not found
455 800A01C7 Code source lock error
457 800A01C9 This key is already an element association of this collection
458 800A01CA The variable uses an Automation type that is not supported in VBScript.
462 800A01CE The remote server does not exist or cannot be accessed
481 800A01E1 Invalid picture
500 800A01F4 Variable is not defined
501 800A01F5 Illegal distribution
502 800A01F6 Script object is unsafe
503 800A01F7 The object cannot be initialized safely.
504 800A01F8 The object cannot be created safely
505 800A01F9 Invalid or unqualified reference
506 800A01FA class is not defined
507 800A01FB An exception occurred
5016 800A1398 Regular expression object required
5017 800A1399 Syntax error in regular expression
5018 800A139A Wrong quantifier
5019 800A139B ']' required in regular expression
5020 800A139C requires ')' in regular expression
5021 800A139D character set out of bounds
32811 800A802B element not found