PDA

Click to See Complete Forum and Search --> : Passing parameters from vb to crystal report


rathi
Sep 23rd, 2000, 09:58 AM
Hi everyone,

How can I pass parameters or criteria to the crystal report from my vb program?

For eg., the crystal report displays all records from the customer table. I just want to display the records where the customerID=ANTON.

Any help would be greatly appreciated.

Thank you.
sincerely,

Rathi

Caro
Sep 25th, 2000, 07:34 AM
strSql = "{CustomerID} = 'ANTON'"

CrystalReport1.SelectionFormula = strSql

Hope this helps