CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    Aug 2007
    Posts
    5

    RecordSelectionFormula

    hi , i am newbie in crstal report,
    I had face a problem when i try to set the formula for selection.

    I hope to query record that inv_date and c_date bigger than certain date.
    so i set the formula like below:

    r.RecordSelectionFormula =
    "{ViewReportTraking.inv_date} >= DateValue('" & datefrom.ToString() & "') or {ViewReportTraking.c_date} >= DateValue('" & datefrom.ToString() & "')"

    What happen is the query only select the record inv_date >= certainDate,
    but not the c_date >=certainDate.


    when i try to set it to opposite
    r.RecordSelectionFormula =
    "{ViewReportTraking.c_date} >= DateValue('" & datefrom.ToString() & "') or {ViewReportTraking.inv_date} >= DateValue('" & datefrom.ToString() & "')"

    I need query either inv_date or c_date >= certainDate.
    Last edited by calvinkwoo3000; August 21st, 2007 at 03:55 AM. Reason: wrong spelling

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

Featured