why is the following code giving an Invalid use of Null: 'Replace' error even though I have placed in an if statement and even when the field is not null?
dim myVar
myVar = (products.Fields.Item("CustomMemo01").Value)
If myVar <> "" Then
dim script
dim note
dim texting
script=(products.Fields.Item("CustomMemo01").Value)
note=(Replace(script,":",":</td><td valign=top>"))
texting=(Replace(note,VBCrLf,"</td></tr><tr><td valign=top>"))
End If
dim myVar
myVar = (products.Fields.Item("CustomMemo01").Value)
If myVar <> "" Then
dim script
dim note
dim texting
script=(products.Fields.Item("CustomMemo01").Value)
note=(Replace(script,":",":</td><td valign=top>"))
texting=(Replace(note,VBCrLf,"</td></tr><tr><td valign=top>"))
End If