Access [IErrorInfo.GetDescription 因 E_FAIL(0x80004005) 而失败 ]
Posted on 2009-10-14 11:16 answer 阅读(711) 评论(0) 编辑 收藏 举报原因:
使用了Access的关键字。
解决方法:
把字段用“[]”括起来。
附 Access 关键字:
ADD ALL Alphanumeric ALTER AND ANY Application AS ASC Assistant AUTOINCREMENT Avg
BETWEEN BINARY BIT BOOLEAN BY BYTE
CHAR, CHARACTER COLUMN CompactDatabase CONSTRAINT Container Count COUNTER CREATE CreateDatabase CreateField CreateGroup CreateIndex Createobject CreateProperty CreateRelation CreateTableDef CreateUser CreateWorkspace CURRENCY CurrentUser
DATABASE DATE DATETIME delete DESC Description DISALLOW DISTINCT DISTINCTROW Document DOUBLE drop
Echo Else End Eqv Error EXISTS Exit
FALSE Field, Fields FillCache FLOAT, FLOAT4, FLOAT8 FOREIGN Form, Forms FROM Full FUNCTION
GENERAL Getobject GetOption GotoPage GROUP GROUP BY GUID
HAVING
Idle IEEEDOUBLE, IEEESINGLE If IGNORE Imp IN INDEX Index, Indexes INNER INSERT InsertText INT, INTEGER, INTEGER1, INTEGER2, INTEGER4 INTO IS
JOIN
KEY
LastModified LEFT Level Like LOGICAL, LOGICAL1 LONG, LONGBINARY, LONGTEXT
Macro Match Max, Min, Mod MEMO Module MONEY Move
object OLEobject OFF ON OpenRecordset OPTION OR ORDER Orientation Outer OWNERACCESS
Parameter PARAMETERS Partial PERCENT PIVOT PRIMARY PROCEDURE Property
Queries Query Quit
REAL Recalc Recordset REFERENCES Refresh RefreshLink RegisterDatabase Relation Repaint RepairDatabase
Report Reports Requery RIGHT
SCREEN SECTION SELECT SET SetFocus SetOption SHORT SINGLE SMALLINT SOME SQL StDev,
StDevP STRING Sum
TABLE TableDef, TableDefs TableID TEXT TIME, TIMESTAMP TOP TRANSFORM TRUE Type
UNION UNIQUE update USER
VALUE VALUES Var, VarP VARBINARY, VARCHAR
WHERE WITH Workspace
Xor
Year YES YESNO