I have the following query that runs fine where SKU_GP_EXT_DSC is a memo field.
SELECT Formatting(SKU_GP_EXT_DSC)
FROM SKU_GROUP
The custom module Formatting works fine.
Public Function Formatting(Text As String) As String
Dim outString As String
outSring = ""
If Len(Text) > 0 Then
outString = Replace(Text, vbCrLf, "\line")
End If
Formatting = outString
End Function
But when I go to export the results of this query to a text file, I receive the error message, "Data type mismatch in criteria expression". I cannot find a way arround this issue. Any ideas?
Thanks in advance.
SELECT Formatting(SKU_GP_EXT_DSC)
FROM SKU_GROUP
The custom module Formatting works fine.
Public Function Formatting(Text As String) As String
Dim outString As String
outSring = ""
If Len(Text) > 0 Then
outString = Replace(Text, vbCrLf, "\line")
End If
Formatting = outString
End Function
But when I go to export the results of this query to a text file, I receive the error message, "Data type mismatch in criteria expression". I cannot find a way arround this issue. Any ideas?
Thanks in advance.