Results 1 to 3 of 3

Thread: for current month and year (Resolved)

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Location
    Lewiston, Maine
    Posts
    128

    for current month and year (Resolved)

    I'm using crystal reports 10. I need to select only records for the current month and current year. I've tried to figure it out in the select expert, but it is beyond me. Can anyone help?
    Last edited by purdybirds; Jun 22nd, 2005 at 10:27 AM.

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196

    Re: for current month and year

    in the select expert choose forumla from the dropdown box
    and add the following:
    Code:
    Month ({Report.YOUR_DATE}) = Month (CurrentDate) AND
    Year ({Report.YOUR__DATE}) = Year (CurrentDate)
    where Report is the name of your table and YOUR_Date is the name of the field.
    you can use the Show Formula and Forumla Editor to help you.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2003
    Location
    Lewiston, Maine
    Posts
    128

    Re: for current month and year

    Thanks, It works great!

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