Nov 7, 2007 #1 dinster Programmer Apr 12, 2007 54 GB Hi i have this code which checks for carriage returns ms access 2003 query.... EXAM_Neuro1: Replace([EXAM_Neuro],Chr(10),Chr(13) & Chr(10),1,-1,1) I get an error msg on the field if its null...how do i take that in to consideration? Many thanks
Hi i have this code which checks for carriage returns ms access 2003 query.... EXAM_Neuro1: Replace([EXAM_Neuro],Chr(10),Chr(13) & Chr(10),1,-1,1) I get an error msg on the field if its null...how do i take that in to consideration? Many thanks
Nov 7, 2007 #2 JerryKlmns IS-IT--Management Feb 7, 2005 2,062 GR SELECT Replace([EXAM_Neuro],Chr(10),Chr(13) & Chr(10),1,-1,1) FROM YourTableName WHERE EXAM_Neuro Is Not Null Upvote 0 Downvote
SELECT Replace([EXAM_Neuro],Chr(10),Chr(13) & Chr(10),1,-1,1) FROM YourTableName WHERE EXAM_Neuro Is Not Null
Nov 7, 2007 #3 JerryKlmns IS-IT--Management Feb 7, 2005 2,062 GR And if you care also about empty SELECT Replace([EXAM_Neuro],Chr(10),Chr(13) & Chr(10),1,-1,1) FROM YourTableName WHERE EXAM_Neuro & "" <> "" Upvote 0 Downvote
And if you care also about empty SELECT Replace([EXAM_Neuro],Chr(10),Chr(13) & Chr(10),1,-1,1) FROM YourTableName WHERE EXAM_Neuro & "" <> ""