Learn Microsoft Access Advanced Programming Techniques, Tips and Tricks.

Friday, April 13, 2007

amend select asp

Amend Select ASP Code

<html>
<head>
<title>Select category to change</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Please select which category you wish to modify.<hr></p>
<%
Dim rst
Set rst = Server.CreateObject("ADODB.Recordset")
rst.Open "Categories", "DSN=NorthWindDSN"
%>
<form name="frmFind" method="get" action="amend_change.asp">
<select name = "ProdCats" Size = "1">
<%
DO WHILE NOT rst.EOF
 Response.Write "<option value= '" & rst("CategoryID") & "'>"
 Response.Write rst("CategoryName") & "</option>"
 rst.MoveNext
 Loop
 rst.close
 set rst=Nothing
 %>
 </select>
 <input type="submit">
 </form>
 </body>
 </html>

Click Next for amend-change.asp

  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.