Hi there
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:
[CODE=VB]<html>
<body><%
set conn=Server.Cre ateObject("ADOD B.Connection")
conn.Provider=" Microsoft.Jet.O LEDB.4.0"
conn.Open "c:/inetpub/wwwroot/test/fpdb/mytest.mdb"
set rs = Server.CreateOb ject("ADODB.rec ordset")
rs.Open "SELECT Companyname, Contactname FROM Customers", connstr=rs.GetS tring(,,"</td><td>","</td></tr><tr><td>","& nbsp;")
%><table border="1" width="100%">
<tr>
<td><%Response. Write(str)%></td>
</tr>
</table><%
rs.close
conn.close
set rs = Nothingset conn = Nothing%></body>
</html>[/CODE]
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
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:
[CODE=VB]<html>
<body><%
set conn=Server.Cre ateObject("ADOD B.Connection")
conn.Provider=" Microsoft.Jet.O LEDB.4.0"
conn.Open "c:/inetpub/wwwroot/test/fpdb/mytest.mdb"
set rs = Server.CreateOb ject("ADODB.rec ordset")
rs.Open "SELECT Companyname, Contactname FROM Customers", connstr=rs.GetS tring(,,"</td><td>","</td></tr><tr><td>","& nbsp;")
%><table border="1" width="100%">
<tr>
<td><%Response. Write(str)%></td>
</tr>
</table><%
rs.close
conn.close
set rs = Nothingset conn = Nothing%></body>
</html>[/CODE]
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
Comment