I am working on the crystal report and I am having some issues with selection formula as I am not able to use variable in the below code. However if I, mention the string directly then formula is working
Code not working: Dim tb As String= "104" CrystalReport. SelectionFormula= "{table1.tableno}= tb"
Above code is not working and giving a message, string field required, however I have already define my variable 'tb' as string.
Below code is working without using variable: CrystalReport. SelectionFormula= "{table1.tableno}= '104' "
Any help would be greatly appreciated!