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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Access DBs and ASP

Status
Not open for further replies.

mlocurci

MIS
Oct 17, 2001
210
US
I am trying to use an .asp page to submit a form to a database. I have everything setup correctly, I think, put when my sysadmin publishes it, the data never makes it to the db. Any ideas? The form seems to work fine!!!

Thanks!!!

-Michael
 
Are the permissions for the DB set up with write permissions? You may want to check the permissions (CHMOD) I believe the correct setting 777 for Read/Write/Excecute

 
Here is what I do:

Note: first add an Access database and let Front Page create a Global.asa file with a connection in it

<html>
<%@ Language=VBScript %>
<head>
<meta http-equiv=&quot;Content-Language&quot; content=&quot;en-us&quot;>
<meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=windows-1252&quot;>
<meta name=&quot;GENERATOR&quot; content=&quot;Microsoft FrontPage 4.0&quot;>
<meta name=&quot;ProgId&quot; content=&quot;FrontPage.Editor.Document&quot;>
<title>New Page 1</title>
</head>
<%
Set fp_conn = Server.CreateObject(&quot;ADODB.Connection&quot;)
Set fp_rs = Server.CreateObject(&quot;ADODB.Recordset&quot;)
fp_conn.Open Application(&quot;Mail-List_ConnectionString&quot;)
fp_rs.Open &quot;Select * From [INS Members];&quot;, fp_conn, 1, 3, 1
fp_rs.movefirst
%>
<body>
<p align=&quot;center&quot;><b><font size=&quot;5&quot;>Members</font></b></p>
<table width=&quot;1028&quot; border=&quot;1&quot;>
<thead>
<tr>
<td width=&quot;87&quot;><b>Salutation</b></td>
<td width=&quot;92&quot;><b>FirstName</b></td>
<td width=&quot;91&quot;><b>LastName</b></td>
<td width=&quot;79&quot;><b>Address</b></td>
<td width=&quot;53&quot;><b>City</b></td>
<td width=&quot;59&quot;><b>State</b></td>
<td width=&quot;48&quot;><b>Zip</b></td>
<td width=&quot;99&quot;><b>Phone Home</b></td>
<td width=&quot;99&quot;><b>Phone Work</b></td>
<td width=&quot;96&quot;><b>Pager</b></td>
<td width=&quot;65&quot;><b>FAX</b></td>
<td width=&quot;70&quot;><b>E-mail</b></td>
</tr>
</thead>
<tbody>
<%do while not fp_rs.eof%>
<tr>
<td width=&quot;87&quot;><%=fp_rs(&quot;Salutation&quot;)%></td>
<td width=&quot;92&quot;><%=fp_rs(&quot;FirstName&quot;)%></td>
<td width=&quot;91&quot;><%=fp_rs(&quot;LastName&quot;)%></td>
<td width=&quot;79&quot;><%=fp_rs(&quot;Address&quot;)%></td>
<td width=&quot;53&quot;><%=fp_rs(&quot;City&quot;)%></td>
<td width=&quot;59&quot;><%=fp_rs(&quot;State&quot;)%></td>
<td width=&quot;48&quot;><%=fp_rs(&quot;Zip&quot;)%></td>
<td width=&quot;99&quot;><%=fp_rs(&quot;Phone Home&quot;)%></td>
<td width=&quot;99&quot;><%=fp_rs(&quot;Phone Work&quot;)%></td>
<td width=&quot;96&quot;><%=fp_rs(&quot;Pager&quot;)%></td>
<td width=&quot;65&quot;><%=fp_rs(&quot;FAX&quot;)%></td>
<td width=&quot;70&quot;><a href=&quot;<%=fp_rs(&quot;E-mail&quot;)%>&quot;></a>&nbsp;</td>
</tr>
<%fp_rs.movenext%>
<%loop%>
</tbody>
</table>
<%Set fp_conn = nothing%>
<%Set fp_rs = nothing%>
</body>
</html>
DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top