G
Guest
I have a field called case_detail into which several paragraphs can be typed.
When the case is ready to be summarized, the assistant adds her summary
paragraph to the beginning of this field, separated from the other paragraphs
by a hard return. I need to create a new field which gives me only her
paragraph. One of the programmers gave me some code he thought would work
but I'm getting a syntax error "missing operator" as shown below. I know
very little about SQL, and could very well have stuff out of order, etc.
Please help someone less gifted than yourself!
SELECT dbo_KCCMS_Journal.user_case_no, dbo_KCCMS_Journal.store_number,
dbo_KCCMS_Journal.incident_type, dbo_KCCMS_Journal.comments,
"'Syntax error (missing operator) in query expression 'case
charindex(char(10), case_detail)
when 0 then case_detail
else substring(case_detail,1,charindex(char(10),case_detail))
end as detail_line FROM dbo_KCCMS_Case_Detail,"
case charindex(char(10), case_detail)
when 0 then case_detail
else substring(case_detail,1,charindex(char(10),case_detail))
end as detail_line FROM dbo_KCCMS_Case_Detail,
dbo_KCCMS_Journal.status, dbo_KCCMS_Journal.case_opened
FROM dbo_KCCMS_Journal
WHERE (((dbo_KCCMS_Journal.case_opened) Between [Beg Date] And [End Date]));
When the case is ready to be summarized, the assistant adds her summary
paragraph to the beginning of this field, separated from the other paragraphs
by a hard return. I need to create a new field which gives me only her
paragraph. One of the programmers gave me some code he thought would work
but I'm getting a syntax error "missing operator" as shown below. I know
very little about SQL, and could very well have stuff out of order, etc.
Please help someone less gifted than yourself!
SELECT dbo_KCCMS_Journal.user_case_no, dbo_KCCMS_Journal.store_number,
dbo_KCCMS_Journal.incident_type, dbo_KCCMS_Journal.comments,
"'Syntax error (missing operator) in query expression 'case
charindex(char(10), case_detail)
when 0 then case_detail
else substring(case_detail,1,charindex(char(10),case_detail))
end as detail_line FROM dbo_KCCMS_Case_Detail,"
case charindex(char(10), case_detail)
when 0 then case_detail
else substring(case_detail,1,charindex(char(10),case_detail))
end as detail_line FROM dbo_KCCMS_Case_Detail,
dbo_KCCMS_Journal.status, dbo_KCCMS_Journal.case_opened
FROM dbo_KCCMS_Journal
WHERE (((dbo_KCCMS_Journal.case_opened) Between [Beg Date] And [End Date]));