![]() |
Sergey Kornilov admin 8/27/2003 |
Hi, if (Request.Form("NeedQuotes")(i))="True" then strValue= "'" & Replace( Request.Form(Request.Form("FieldName")(i)) , "'", "''") & "'" else if Request.Form(Request.Form("FieldName")(i))="" then strValue="0" else strValue=Request.Form(Request.Form("FieldName")(i)) end if end if
if (Request.Form("NeedQuotes")(i))="True" then strValue= "'" & UCase(Replace( Request.Form(Request.Form("FieldName")(i)) ), "'", "''") & "'" else if Request.Form(Request.Form("FieldName")(i))="" then strValue="0" else strValue=UCase(Request.Form(Request.Form("FieldName")(i))) end if end if
|
L
|
laboria 10/15/2004 |
How do you perform this for individual fields instead of the entire database? |
![]() |
Sergey Kornilov admin 10/15/2004 |
You need to add a check for some specific field names also. Here is the sample code: if Request.Form("FieldName")(i)="Field1" or Request.Form("FieldName")(i)="Field2" then if (Request.Form("NeedQuotes")(i))="True" then strValue= "'" & UCase(Replace( Request.Form(Request.Form("FieldName")(i)) ), "'", "''") & "'" else if Request.Form(Request.Form("FieldName")(i))="" then strValue="0" else strValue=UCase(Request.Form(Request.Form("FieldName")(i))) end if end if end if |
L
|
laboria 10/18/2004 |
Is there a vbscript I can enter into the default field inside of asp runner for the fields I want to be in upper case? |
![]() |
Sergey Kornilov admin 10/19/2004 |
No, modifying default values won't help because default value is applied before you enter anything into the edit box. |