Results 1 to 2 of 2

Thread: Passing parameters from vb to crystal report

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2000
    Location
    Brunei
    Posts
    100

    Talking

    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

  2. #2
    Addicted Member
    Join Date
    May 1999
    Location
    Littlehampton, W Sussex GB
    Posts
    203

    Crystal formula

    strSql = "{CustomerID} = 'ANTON'"

    CrystalReport1.SelectionFormula = strSql

    Hope this helps

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width