Results 1 to 3 of 3

Thread: [RESOLVED] How to make Month as a Parameter

  1. #1

    Thread Starter
    Addicted Member girl81's Avatar
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    211

    Resolved [RESOLVED] How to make Month as a Parameter

    hi everybody..
    i'm use a CR8.5 and Access database.
    I want to make a Month as a parameter.

    so i want to prompt the user for month (in Format January,February and ....) I retrieve date from database.But here i just can list out in Format 1,2,3 and .....Not January,February and ....I dont know well how to work with Formula Editor.So anybody can help me.

    I'm also want to display a Month (in Format January,February...) on the report.I try to change at Format but there is no format like i want.

    any helping is very much appreciated.
    tq

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: How to make Month as a Parameter

    There are a couple of ways to handle prompting for a month name, here is one.

    On the Edit Parameter Screen, set the parameter type to String. Click the Set Default Values button and add each month to the list. These values will appear in the combobox on the parameter prompting screen.

    In the record selection formula use
    MonthName ({Name of Database field}) = {?Name of parameter}


    To format a date field to display just the Month Name.

    Open the Format Editor.
    Click the Customize button.
    On the Date/Time tab set the Order combo box to Date.
    On the Date Tab, set the Format combo boxes for Month, Day and Year to
    Month - March
    Day - None
    Year - None

    You could also create a formula that returns the MonthName and print it on the report instead.

  3. #3

    Thread Starter
    Addicted Member girl81's Avatar
    Join Date
    Apr 2006
    Location
    Malaysia
    Posts
    211

    Re: How to make Month as a Parameter

    tq bruce..
    Quote Originally Posted by brucevde

    To format a date field to display just the Month Name.

    Open the Format Editor.
    Click the Customize button.
    On the Date/Time tab set the Order combo box to Date.
    On the Date Tab, set the Format combo boxes for Month, Day and Year to
    Month - March
    Day - None
    Year - None
    Now i know how to display the Month Name on my report.

    Quote Originally Posted by brucevde
    On the Edit Parameter Screen, set the parameter type to String. Click the Set Default Values button and add each month to the list. These values will appear in the combobox on the parameter prompting screen.

    In the record selection formula use
    MonthName ({Name of Database field}) = {?Name of parameter}
    for the above problem, it still under trying.hope can keep in touch for this problem next time.

    tq so much

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