Hi
I am trying to change a column type in my mdb database, but it does not work for me.
This is my error :
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in ALTER TABLE statement.
/TriActis/ModifyColumn.asp, line 12
This is my code :
'Set Conn = Server.CreateObject("ADODB.Connection")
DSN = "DRIVER={Microsoft Access Driver (*.mdb)}; "
DSN = DSN & "DBQ=" & Server.MapPath ("/_private/DB/MyDB.mdb")
Set Conn = Server.CreateObject("ADODB.Connection")
Set RsUsrID = Server.CreateObject("ADODB.Recordset")
Conn.Open DSN
strSQL = "ALTER TABLE tblToolTask"
strSQL = strSQL & "ALTER COLUMN HoursSpent Single"
RsUsrID.Open strSQL, DSN, 2
I am trying to change a column type in my mdb database, but it does not work for me.
This is my error :
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC Microsoft Access Driver] Syntax error in ALTER TABLE statement.
/TriActis/ModifyColumn.asp, line 12
This is my code :
'Set Conn = Server.CreateObject("ADODB.Connection")
DSN = "DRIVER={Microsoft Access Driver (*.mdb)}; "
DSN = DSN & "DBQ=" & Server.MapPath ("/_private/DB/MyDB.mdb")
Set Conn = Server.CreateObject("ADODB.Connection")
Set RsUsrID = Server.CreateObject("ADODB.Recordset")
Conn.Open DSN
strSQL = "ALTER TABLE tblToolTask"
strSQL = strSQL & "ALTER COLUMN HoursSpent Single"
RsUsrID.Open strSQL, DSN, 2