[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 366
  • Last Modified:

Crystal Report Formula issue

I have the following simple formula:
SELECT document_image.ID 'FROM DocM.document_image document_image
'WHERE FACILITY='98'
I keep getting this error and highlights document_image.id this field is a string:
'A number, currency amount, boolean, date, time, date-time, or string is expected here.'

Any help greatly appreciated

0
nobile00
Asked:
nobile00
  • 2
  • 2
1 Solution
 
jerrypdCommented:
is that a quote before the From and before the Where?
shouldnt be there!
0
 
jerrypdCommented:
and is facility a numeric or string?
if numeric, kill those quotes as well
0
 
nobile00Author Commented:
I removed the quotes around the number and the ' before Where still get the same error.

Facility is in fact  Numeric
0
 
LIONKINGCommented:
If DocM.document_image is already in your table definitions (for the report), then your formula should only be something like:

{DocM.document_image.FACILITY}=98
0
 
nobile00Author Commented:
Thanks I used tge Facility = 98 and built a select statement.  Thanks for pointing in the right direction.
0

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now