Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Error A string is require here: Post Reply Post New Topic
Author Message
lbuffett
Newbie
Newbie


Joined: 20 Jan 2017
Online Status: Offline
Posts: 7
Quote lbuffett Replybullet Topic: Error A string is require here:
    Posted: 15 Nov 2018 at 3:12am
Hello

I am trying to write a formula that will give a value of 1 for every time a code: For example [33111, 33115, 33121, 33125] is entered. The formula I am using below gives the following error:

A string is required here:


Code: if {columns.Procedure} = [33111, 33115, 33121, 33125] then
1
else 0;

Procedure is listed as Char(7) in the database.

Any ideas?

Les
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 15 Nov 2018 at 3:16am
if {columns.Procedure} IN ['33111','33115','33121','33125'] then 1 else 0
IP IP Logged
lbuffett
Newbie
Newbie


Joined: 20 Jan 2017
Online Status: Offline
Posts: 7
Quote lbuffett Replybullet Posted: 15 Nov 2018 at 3:49am
Thank you that fixed it.

Les
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.