Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
| Search | Today's Posts | Mark Forums Read
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old May 14th, 2004, 12:56 PM
Registered User
 
Join Date: May 2004
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default ASP Error with Ms Access file

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Error Type:
Microsoft VBScript compilation (0x800A0401)
Expected end of statement
/retailersearch.asp, line 7, column 72
cnn= "PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=D:/inetpub/wwwroot ("db\retaillist.mdb")
-----------------------------------------------------------------------^


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Page:
GET /retailersearch.asp

  #2 (permalink)  
Old May 15th, 2004, 04:33 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Bangalore, KA, India.
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi sloynaz,

You got to rewrite your connection string as given below.

cnn="PROVIDER=MICROSOFT.JET.OLEDB.4.0;DATA SOURCE=" & Server.Mappath("/db/retaillist.mdb")

This should do the trick.
Cheers!

-Vijay G


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import text file to MS Access, ASP.net rykie Access ASP 0 August 31st, 2007 03:07 AM
Convert MS Excell file into MS Access file ashish2001mca General .NET 0 June 29th, 2006 07:09 AM
Error in Asp,net and MS Access DB shankha ADO.NET 1 January 4th, 2006 12:00 PM
Help with ASP and MS ACCESS. Connection error. patzblue Access ASP 7 September 11th, 2004 05:43 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.