Set Conn=Server.Createobject("ADODB.Connection")
Conn.Open "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & Server.MapPath("db/HistoricalPro.mdb"),"" , ""
sql ="Select * From HistoricalPro"
Set Rs = Conn.Execute("sql") <------------------ line 42 ครับ
แต่พอ run แล้ว error ดังนี้ครับ
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E14)
[Microsoft][ODBC Microsoft Access Driver] Invalid SQL statement; expected 'DELETE', 'INSERT', 'PROCEDURE', 'SELECT', or 'UPDATE'.
/Default.asp, line 42