Wrox Programmer Forums
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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
Old May 17th, 2005, 08:59 AM
SKE SKE is offline
Authorized User
Join Date: Mar 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default Open a table selected in a html form

I need to open a table whose name has been typed in a form but I get this error :

Microsoft OLE DB Provider for ODBC Drivers error '80040e14'

[Microsoft][ODBC Microsoft Access Driver] Syntax error in FROM clause.

This is my script :

dim strexhib
strexhib = request.form("exhibition")

Set Conn=Server.CreateObject("ADODB.Connection")
strConn="driver={Microsoft Access Driver (*.mdb)}; "
strConn=strConn & " DBQ=" & Server.MapPath("exhibitions.mdb")
strConn=strConn & ";pwd=" & strCode
Conn.Open strConn

sql = "SELECT * FROM " & strexhib

Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open sql, conn ,3,3

Any help really appreciated !!!

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get html code for the selected part of the suryasimha ASP.NET 1.x and 2.0 Application Design 3 July 19th, 2007 12:00 PM
Open Form, run query, open form Grafixx01 Access 7 April 26th, 2007 11:32 AM
Copy data from Excel to open HTML form Bartje Excel VBA 1 September 29th, 2006 04:02 AM
Open a table selected in a html form SKE Access ASP 3 May 19th, 2005 01:40 AM
open file with highlet selected text salman Classic ASP Databases 0 February 23rd, 2004 10:54 PM

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