Results 1 to 2 of 2

Thread: Crystal reports in Vb5

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Posts
    2
    well thanks Vb world exists to help us solve our problem
    i would like to do an adhoc query from crystal report.
    in other words when i run crystal report from vb5,it asks me for relevant parameters and then retrieve the required fields.For e.g i WANT TO RETRIEVE ALL TRANSACTION FROM 01/01/00 TO 10/10/00
    THANKS IN ADVANCE

  2. #2
    New Member
    Join Date
    Mar 2000
    Posts
    8
    Try something like

    Report.SelectionFormula = "{TABLENAME.FIELDNAME} > " _
    "Date(01,01,1999) AND "{TABLENAME.FIELDNAME} < " _
    "Date(10,10,1999)"

    ReportTest.PrintReport

    If you require the date to be unput at runtime you will have to convert the input into the format Date(dd,mm,yyyy).

    Hope this works

    -Jamie One-

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