Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display records

Status
Not open for further replies.
Is your Northwind.mdb file in the same directory? If so (which you say they are), then what is the exact error message that you are getting on the page?

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
If you are using IE, go to tools | Internet Options...
Click the Advanced Tab and UNCHECK "Show friendly HTTP error messages".

This should give you a more comprehensive error message rather than "page cannot be displayed"

BDC.
 
Hi
this is what i have on line 7
conn.Open(Server.Mappath("/northwind.mdb"))
 
You have the wrong slash. Try this:
Code:
conn.Open(Server.Mappath("[COLOR=red]\[/color]northwind.mdb"))

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Hi Chopstik


I just tried what you said.
I am getting the same error message
Thanks
 
Is you database in 'C:\Accounts\mysite\
Your error suggests that your asp file is in a folder called samples but I thought that your database and ASP files were in the same folder?

Can you tell us your file structure and exactly where your database and ASP files exist within it?

BDC.
 
Then your line should go like:
conn.Open(Server.Mappath("/samples/northwind.mdb"))

Unless I am mistaken, Server.Mappath will give you the path up to the directory and you have to specify the subfolders from there.


It's hard to think outside the box when I'm trapped in a cubicle.
 
OH, another thing. When you use an Access database the IUSR_machinename account must have Create permission in the folder the database resides in. When an Access database is opened it creates a .LDB file as a lock file and if the IUSR account does not have create permission the file cannot be created and therefore the database not opened.


It's hard to think outside the box when I'm trapped in a cubicle.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top