vanillapod
MIS
Hi I've got some ASP code that copies data from one client to another client (it starts another record). I'm using 'replace' to deal any ' that users have entered but i'm getting an error. My code is:
The error is:
Microsoft VBScript runtime error '800a005e'
Invalid use of Null: 'replace'
/internalaudit/CopyRep.asp, line 152
Can anyone help me out with this?
Cheers
Code:
If Trim(rsce.Fields.Item("workundertaken").Value)<>"" Then
wu = replace(rsce.Fields.Item("workundertaken").Value,"'","''")
Else
wu = (rsce.Fields.Item("workundertaken").Value)
End If
The error is:
Microsoft VBScript runtime error '800a005e'
Invalid use of Null: 'replace'
/internalaudit/CopyRep.asp, line 152
Can anyone help me out with this?
Cheers