how Connect an HTML form to Access Database what is the ASP code f

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

how Connect an HTML form to Access Database?
what is the ASP code for connecting it???
 
human_bein said:
how Connect an HTML form to Access Database?
what is the ASP code for connecting it???

One way is to create a DSN on the server and name it. The asp code would
then look something like:


<%
Dim oConn
Dim rst

set oConn = server.CreateObject("ADODB.Connection")
oConn.ConnectionString = "DSN=yourDSNname"
oConn.Open
strSQL = "SELECT * FROM tblTourTable"
set rst = oConn.Execute(strSQL)
%>
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads
http://www.datastrat.com
http://www.mvps.org/access
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top