G
Guest
I am using Julitta Korol's "Access 2003" book (Wordware). So far it's been
great. However, I'm now trying to go through the Access and Access Server
Pages sections, and am having problems with one of the first exercises.
After copying the files from wordware (and typo checked by me), I have the
following GetCustomer.asp file
<%@ Language=VBScript %>
<HTML>
<HEAD>
<TITLE>Retrieving a Recordset</TITLE>
</HEAD>
<BODY>
<%
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & _
"C:\Learn_ASP\Northwind.mdb"
Set rst = conn.Execute("SELECT CompanyName FROM Customers")
Do While Not rst.EOF
Response.Write rst("CompanyName") & "<BR>"
rst.MoveNext
Loop
%>
</BODY>
</HTML>
When I try to run it in my browser with
http://localhost/GetCustomer
I get an error page:
The specified module could not be found
I have checked that the northwind.mdb is in the correct directory, that the
virtual directory is correctly set (I can see the asp file in the directory
list using http://localhost/
I have tried several different Jet driver / provider instructions to no avail.
I'm running Access 2003 on Windows XP with all the latest updates. Looking
at the source code of the error page doesn't give me any clue as to which
module can't be found.
I don't know if it makes a difference, but I've made sure that ADO and ADOX
are referenced in the northwind.mdb code.
This may be an ASP forum question, but I'm hoping someone here has a clue
about this.
Thanks.
great. However, I'm now trying to go through the Access and Access Server
Pages sections, and am having problems with one of the first exercises.
After copying the files from wordware (and typo checked by me), I have the
following GetCustomer.asp file
<%@ Language=VBScript %>
<HTML>
<HEAD>
<TITLE>Retrieving a Recordset</TITLE>
</HEAD>
<BODY>
<%
Set conn = Server.CreateObject("ADODB.Connection")
conn.Open "DRIVER=Microsoft Access Driver (*.mdb);DBQ=" & _
"C:\Learn_ASP\Northwind.mdb"
Set rst = conn.Execute("SELECT CompanyName FROM Customers")
Do While Not rst.EOF
Response.Write rst("CompanyName") & "<BR>"
rst.MoveNext
Loop
%>
</BODY>
</HTML>
When I try to run it in my browser with
http://localhost/GetCustomer
I get an error page:
The specified module could not be found
I have checked that the northwind.mdb is in the correct directory, that the
virtual directory is correctly set (I can see the asp file in the directory
list using http://localhost/
I have tried several different Jet driver / provider instructions to no avail.
I'm running Access 2003 on Windows XP with all the latest updates. Looking
at the source code of the error page doesn't give me any clue as to which
module can't be found.
I don't know if it makes a difference, but I've made sure that ADO and ADOX
are referenced in the northwind.mdb code.
This may be an ASP forum question, but I'm hoping someone here has a clue
about this.
Thanks.