Hi all
I have a form that has four text fields that need joining
together before
being entered into the database.
Does anyone know how i can acheive this?
I'm using the DW command Behavior and the code below.
I've come up with the code directly below, but im not sure
how to impliment
it.
Thanks
Andy
<% If Request("updateme") <>"" Then %>
<% Dim Cust_Ref
Cust_Ref = Request("cr1")&"/"&
Request("cr2")&"/"& Request("cr3")&"/"&
Request("cr4") %>
<% end if
%>
<%
if(Request("Cust_ref") <> "") then
Cal_Update__MMColParam11 =
Request("Cust_ref")
%>
<%
set Cal_Update = Server.CreateObject("ADODB.Command")
Cal_Update.ActiveConnection = MM_calcert_STRING
Cal_Update.CommandText = "UPDATE Calibrations SET Cust_Ref='"
+
Replace(Cal_Update__MMColParam11, "'", "''") + "' WHERE
Inst_ID = '" +
Replace(Cal_Update__MMColParam10, "'", "''") + "' "
Cal_Update.CommandType = 1
Cal_Update.CommandTimeout = 0
Cal_Update.Prepared = true
Cal_Update.Execute()
Response.Redirect("update_1.asp?InstID="&(RSCerts1.Fields.Item("Inst_ID").Value))
%>