I wasnt sure if access was the right section to post but seeing as thats what im working on here goes.
I spent some time on W3schools web however almost all of the samples I copied and pasted gave me the same/similair error:
Microsoft VBScript compilation error '800a0401'
Expected end of statement
/test/demo_update.asp, line 15
Sample Code:
Expand|Select|Wrap|Line Numbers
- <html>
- <body><%
- set conn=Server.CreateObject("ADODB.Connection")
- conn.Provider="Microsoft.Jet.OLEDB.4.0"
- conn.Open "c:/inetpub/wwwroot/test/fpdb/mytest.mdb"
- set rs = Server.CreateObject("ADODB.recordset")
- rs.Open "SELECT Companyname, Contactname FROM Customers", connstr=rs.GetString(,,"</td><td>","</td></tr><tr><td>"," ")
- %><table border="1" width="100%">
- <tr>
- <td><%Response.Write(str)%></td>
- </tr>
- </table><%
- rs.close
- conn.close
- set rs = Nothingset conn = Nothing%></body>
- </html>
Now seeing as these are samples I would assume they actually work, is there something happening on my 2003 Server or is there a language code difference that needs to be applied for using MS Access ?
Many thanks