 				 AND collection_cde='#origcollection_cde#'
 			</cfif>
 		</cfquery>
+		<cfset did=rereplace(fld,"[^A-Za-z]","_","all")>
 	</cfif>
-	<cflocation url="CodeTableEditor.cfm?action=edit&tbl=#tbl#" addtoken="false">
+	<cflocation url="CodeTableEditor.cfm?action=edit&tbl=#tbl####did#" addtoken="false">
 
 
 	</cfif>

			</tr>
			<cfloop query="q">
				<cfset did=rereplace(other_id_type,"[^A-Za-z]","_","all")>
				<br>did: #did#
				<tr #iif(i MOD 2,DE("class='evenRow'"),DE("class='oddRow'"))#>
					<td>
			<form name="#tbl##i#" id="#tbl##i#" method="post" action="CodeTableEditor.cfm">
				<input type="hidden" name="action" value="saveEdit">

			where
				OTHER_ID_TYPE='#origData#'
		</cfquery>
		<cfset did=rereplace(other_id_type,"[^A-Za-z]","_","all")>

	<cfelseif tbl is "ctattribute_code_tables">
		<cfquery name="sav" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
			UPDATE ctattribute_code_tables SET
