Dear BarryMVS:
Thank you for your help. I just finished coding this program. The problem is solved, but not sure whether it is the best way to do it. This code is just used to modify the single combo box in the backend database. I thought the logic should be the same for updating linked combo box data.
Please review my code, give you your suggestion.
Have a good weekend.
Longmatch
<!--#include file="connection.asp"-->
<%
dim rsRotation, strQryRotation
set rsRotation = Server.CreateObject("ADODB.Recordset"
strQryRotation ="SELECT * FROM rotation;"
rsRotation.open strQryRotation, objConn, 2, 2
Select CASE LCase(Trim(Request.QueryString("action"

))
case "addsave"
dim rsAddRotation, strQryAddRotation
set rsAddRotation = Server.CreateObject("ADODB.Recordset"
strQryAddRotation ="SELECT * FROM rotation;"
rsAddRotation.open strQryAddRotation, objConn, 2, 2
rsAddRotation.addnew
rsAddRotation("rotation"

=request("rotation"

rsAddRotation("NewAbbr"

= request("abbr"

rsAddRotation.update
rsAddRotation.close
set rsAddRotation = nothing
case "edit"
dim rsEditRotation, strQryEditRotation
set rsEditRotation = Server.CreateObject("ADODB.Recordset"
strQryEditRotation ="SELECT * FROM rotation WHERE ID=" & request("ID"

rsEditRotation.open strQryEditRotation, objConn, 2, 2
case "editsave"
dim rsEditsaveRotation, strQryEditsaveRotation
set rsEditsaveRotation = Server.CreateObject("ADODB.Recordset"
strQryEditsaveRotation ="SELECT * FROM rotation WHERE ID=" & request("ID"

response.write strQryEditsaveRotation
rsEditsaveRotation.open strQryEditsaveRotation, objConn, 2, 2
rsEditsaveRotation("rotation"

=request("rotation"

rsEditsaveRotation("NewAbbr"

= request("abbr"

rsEditsaveRotation.update
case "delete"
dim rsDeleteRotation, strQryDeleteRotation
set rsDeleteRotation = Server.CreateObject("ADODB.Recordset"
strQryDeleteRotation ="DELETE FROM rotation WHERE ID=" & request("ID"

rsDeleteRotation.open strQryDeleteRotation, objConn, 2, 2
rsDeleteRotation.close
set rsDeleteRotation = nothing
end Select
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><!-- InstanceBegin template="/Templates/baylor_Template.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Baylor College of Medicine</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>
<link href="file:///C|/Documents%20and%20Settings/csc-student/Local%20Settings/bcm_depts.css" rel="stylesheet" type="text/css">
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">
<table width="760" border="0" align="left" cellpadding="0" cellspacing="0">
<tr bgcolor="white">
<td>
<!-- header table -->
<table border="0" cellpadding="0" cellspacing="0" width="760">
<tr>
<td><a href="
name="logo" src="images/logo.gif" width="157" height="118" border="0" alt="Baylor College of Medicine"></a></td>
<td><a href="images/department.gif"><img name="department" src="images/department.gif" width="603" height="118" border="0" alt=""></a></td>
</tr>
</table></td>
</tr>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="760">
<tr>
<td width="157" align="left" valign="top" bgcolor="9999cc"><a href="images/092802_r2_c1.gif"><img name="n092802_r2_c1" src="images/092802_r2_c1.gif" width="157" height="30" border="0" alt=""></a>
<table width="100%" border="0" align="left" cellpadding="3" cellspacing="0">
<tr>
<td width="24" align="left" valign="top"><img src="file:///C|/Documents%20and%20Settings/csc-student/Local%20Settings/images/square.gif" width="24" height="9"></td>
<td> </td>
</tr>
<tr>
<td width="24" align="left" valign="top"><img src="file:///C|/Documents%20and%20Settings/csc-student/Local%20Settings/images/square.gif" width="24" height="9"></td>
<td valign="top"><a href="procedure.asp">Procedure Form</a></td>
</tr>
<tr>
<td width="24" align="left" valign="top"><img src="file:///C|/Documents%20and%20Settings/csc-student/Local%20Settings/images/square.gif" width="24" height="9"></td>
<td><a href="ReportByProcedure.asp"><font color="#0000FF">view
procedure</font></a></td>
</tr>
<tr>
<td align="left" valign="top"> </td>
<td><a href="RecSearch.asp">procedure search</a></td>
</tr>
<tr>
<td align="left" valign="top"> </td>
<td> </td>
</tr>
</table>
</td>
<td align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="5" height="58">
<tr bgcolor="white">
<td height="51"> <!-- #BeginEditable "contents" -->
<%
If Not rsRotation.EOF Then ' current user has Procedures
Response.Write _
"<TABLE align = ""center"" BORDER=""1"" CELLSPACING=""3"" CELLPADDING=""3"">" & _
"<TR>" & _
" <TH>Rotation<BR>" & _
" <TH>Abbr<BR>" & _
" <TH>Delete<BR>" & _
" <TH>Edit<BR>" & _
"</TR>"
Do While Not rsRotation.EOF
Response.Write _
"<TR ALIGN=CENTER>" & _
" <TD ALIGN = LEFT>" & rsRotation("rotation"

& "</a>" & "</TD>" & _
" <TD ALIGN = RIGHT>" & rsRotation("NewAbbr"

& "</TD>" & _
" <TD ALIGN = LEFT><a href='C_mod_rotation.asp?action=delete&ID=" & rsRotation("ID"

& "'>DELETE</a>" & "</TD>" & _
" <TD ALIGN = LEFT><a href='C_mod_rotation.asp?action=edit&ID=" & rsRotation("ID"

& "'>EDIT</a>" & "</TD>" & _
"</TR>"
rsRotation.MoveNext
Loop
response.write " <TR><td colspan=""4"" Align=right><a href='C_mod_rotation.asp?action=add'>Add new rotation</a></td></TR>"
Response.Write "</TABLE>"
Else ' current user has no Procedures
Response.Write "<CENTER><H2>No Procedures found</H2></CENTER>"
End If
%>
<% if request("action"

= "add" then%>
<form name="form1" method="post" action="C_mod_rotation.asp?action=addsave">
<table width="52%" border="1" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="36%">Rotation</td>
<td width="64%">Abbrev</td>
</tr>
<tr>
<td><input type="text" name="rotation"></td>
<td><input type="text" name="abbr"></td>
</tr>
<tr>
<td> </td>
<td><div align="right">
<input type="submit" name="Submit" value="Add this rotation">
</div></td>
</tr>
</table>
<p> </p>
</form>
<% end if%>
<% if request("action"

= "edit" then%>
<form name="form1" method="post" action="C_mod_rotation.asp?action=editsave&ID=<%=rsEditRotation("ID"

%>">
<table width="52%" border="1" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="36%">Rotation</td>
<td width="64%">Abbrev</td>
</tr>
<tr>
<td><input type="text" name="rotation" value ="<%=rsEditRotation("Rotation"

%>"></td>
<td><input type="text" name="abbr" value="<%=rsEditRotation("newAbbr"

%>"></td>
</tr>
<tr>
<td> </td>
<td><div align="right">
<input type="submit" name="Submit" value="Update this rotation">
</div></td>
</tr>
</table>
<p> </p>
</form>
<% end if%>
<!-- #EndEditable --> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr>
<td align="center" valign="middle" class="footer"> <hr width="100%" size="1" noshade>
<p><a href="file:///C|/Documents%20and%20Settings/csc-student/Local%20Settings/index.cfm">GME Home</a> | <a href="
target="_blank">BCM
Public Site</a> | <a href="
target="_blank">BCM
Intranet</a><br>
</p>
<p>© 2002 Baylor College of Medicine</p>
<p>Residency Program<br>
Department of Family and Community Medicine<br>
<b>phone:</b> (713)798-7953 <b>fax:</b> (713)798-7789<br>
Houston, Texas 77030</p>
<p><a href="mailto:haijunw@bcm.tmc.edu">haijunw@bcm.tmc.edu</a><br>
modified on Nov, 21 2002</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>