Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
/MoDt/AspSmartUpload8.asp, line 29
บันทัดที่ 29 คือ
Set objExec = Conn.Execute(strSQL)
(
'*** Insert Record ***'
Set Conn = Server.Createobject("ADODB.Connection")
Conn.Open "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("mydatabase.mdb"),"" , ""
strSQL = ""
strSQL = strSQL &"INSERT INTO files "
strSQL = strSQL &"(FilesName) VALUES ('"&mySmartUpload.Files("file1").FileName&"')"
Set objExec = Conn.Execute(strSQL)
)
ดาวโหลด ASP aspSmartUpload - Upload files to Database
ไปลองรันที่เครื่องดูค่ะ
เจอ Error ดังนี้
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
/MoDt/AspSmartUpload8.asp, line 29