Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to format date

Status
Not open for further replies.

taree

Technical User
May 31, 2008
316
US
I would like only to match the year:

{BIDLET.DATELET} = CDate({?Letting Year})

in this case the letting year is 2008,2009,2010 so,

I would like to pass the year 2008 as a parmater

{BIDLET.DATELET} = 2008

thank you
 
Set up the parameter as a number parameter. If your field is not a number for year, but a date, then you can use:

year({BIDLET.DATELET}) = {?Letting Year}

Or better yet, convert the field to a year field in a SQL expression {%year}:

{fn year(BIDLET.DATELET)}

...and use a record selection formula of

{%year} = {?Letting Year}

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top