Hi folks,
I am using a formula field (@age) to calculate age in my report,
Datediff("yyyy",{vwPat.Pat_DOB},CurrentDate)
which gives me age properly in the preview of the report,
BUT,
When i call the same report from my Visual Basic Application
it throws an error saying..
*-----------------------------------------------------------
Error in formula <age>
'Datediff("yyyy",{vwPat.Pat_DOB},CurrentDate)
'
The remaining text does not appear to be part of the formula
*-----------------------------------------------------------
I tried changing the report from "crystal syntax" to "basic syntax" also....but still I dont find any solution....please help me in this regard....Thanks in advance......
I am using a formula field (@age) to calculate age in my report,
Datediff("yyyy",{vwPat.Pat_DOB},CurrentDate)
which gives me age properly in the preview of the report,
BUT,
When i call the same report from my Visual Basic Application
it throws an error saying..
*-----------------------------------------------------------
Error in formula <age>
'Datediff("yyyy",{vwPat.Pat_DOB},CurrentDate)
'
The remaining text does not appear to be part of the formula
*-----------------------------------------------------------
I tried changing the report from "crystal syntax" to "basic syntax" also....but still I dont find any solution....please help me in this regard....Thanks in advance......