Ms-Access Advanced VBA Programming Techniques, Tips and Tricks.

delete select asp

 <%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

Share:

No comments:

Post a Comment

Trending

Popular Posts

Search This Blog

Blog Archive

Powered by Blogger.

Labels

Forms How Tos MS-Access Security Functions Reports Animations msaccess animation msaccess forms Utilities msaccess controls Access and Internet MS-Access Scurity MS-Access and Internet Queries External Links msaccess reports msaccess tips Menus and Toolbars Accesstips MsaccessLinks Process Controls Art Work Downloads msaccess How Tos Graph Charts msaccessQuery List Boxes Command Buttons Emails and Alerts Query Combo Boxes Custom Wizards msaccess graphs msaccess reporttricks ms-access functions msaccessprocess security advanced Access Security DOS Commands Data Macros Menus Property Report Top Values VBA msaccess email msaccess menus progressmeter Access2007 Array Auto-Number Command Button Join Microsoft Numbering System Records Security Split SubForm Table Utility Workgroup database msaccess functions msaccess wizards Access2003 Accounting Year Action Animation Attachment Binary Numbers Budgeting Calculation ChDir Color Palette Conditional Formatting Controls Copy Custom Functions Data Filtering Data Type Defining Pages Diagram Disk Dynamic Lookup Error Handler Excel Export Expression External Field Type Fields Filter Form Form Instances Formatting Groups Hexadecimal Numbers Import Labels List Logo Macro Mail Merge Main Form Memo Methods Monitoring Object Reference Objects Octal Numbers Operating System Paste Primary-Key Product Rank Reading Rich Text Sequence SetFocus Summary Tab-Page Time Difference Union Query User Users Variables Water-Mark Word automatically commands function hyperlinks iSeries Date iif ms-access msaccess msaccess alerts pdf files reference restore switch text toolbar tutorial updating upload vba code

Featured Post

Finding Last Day of Week

How to find the week-end date or first-day date of a week using Current Date as input.  Or find first/last-day date of any week by giving a ...

Labels

Blog Archive

Recent Posts