Learn Microsoft Access Advanced Programming Techniques, Tips and Tricks.

Tuesday, April 3, 2007

delete select asp

Delete Select ASP Code

<%strSQL = "SELECT ProductID, ProductName "
 strSQL = strSQL & "FROM Products "
 strSQL = strSQL & "WHERE Discontinued=True"
 Set rst= Server.CreateObject("ADODB.Recordset")
 Set cnn= Server.CreateObject("ADODB.Connection")
 cnn.open "NorthWindDSN"
 rst.open strSQL, cnn
 %>
 <html>
 <head>
 <title>Delete product</title>
 </head>
 <body bgcolor="#FFFFFF" text="#000000">
 <p>Click the product that you want to delete.</p>
 <hr>
 <%
 Do While Not rst.EOF
 %>
     <a href="delete.asp?ProductID=<%=rst("ProductID")%>"> <%=rst("ProductName")%></a>
 <%
 rst.Movenext
 Loop
 %>
 </body>
 </html>

Go Top

MS-Access and Internet.

  1. Installing the Personal Web Server (PWS)
  2. or Internet Information Services (IIS)
  3. Create the Example ASP Files
  4. Create a DSN Connection
  5. Connect to the Database
  6. Modify Access Data Online
  7. Inserting Data
  8. Modifying Data
  9. Deleting Data
  10. Data Insert Form

No comments:

Post a Comment

Comments subject to moderation before publishing.

Powered by Blogger.