-
Update/add record in table error
I am trying to update/add a record in table. I have found I can delete them easily.
My Add Error:
Error#=800040e14(-2147217900)
Desc=[MS][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
Source = Microsoft OLE DB Provider for ODBC Drivers
SQL State = 37000
Native Error = -3502
My ASP code:
<%
Set MyDb = Server.CreateObject("ASPDB.ep"
Mydb.dbMDB = Server.MapPath("dbhockey.mdb"
MyDb.dbSQL = "Select * FROM Schedule"
MyDb.dbGridTableTag = "BORDER= 1 CELLPADDING=3 CELLSPACING=3"
MyDb.dbcolor="5,,lightcyan,,false"
MyDb.dbNavigation = "BOTH"
Mydb.dbNavigationItem = "Reload, Update, Delete, Add"
MyDb.dbeditparams = "Tablename=schedule, bookmarkflds=ID"
MyDb.dbGridDisplayFlds="1,2,3"
Mydb.dbgridinc = 100
MyDb.dbMode="dual-horiz"
MyDb.aspDBep
%>
I have a players table that works just fine. I was wondering if things such as Autonumbering, Yes/No values in the table design can cause problems when working with this.
Thanks
Chad
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|