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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Anniversary Date Help

Status
Not open for further replies.

VeronicaCBurgess

Technical User
Apr 25, 2003
27
US
I have a database that I am building to track the anniversary dates for tenants. I have a query that with the field [beg_date] and the following which will return the entire years worth of anniversary dates.

Anniversary: Format([beg_date],"mm/dd") & "/" & Format(Date(),"yyyy")

Is there a way to isolate just the upcomming anniversary dates for the rest of the year, ie July forward?

Thanks
 
This will return all records from next month to the end of the year (if December will roll to January):

select * from mytable
where month([beg_date]) between iif(month(date())=12,1,month(date())+1) and 12


Mike Pastore

Hats off to (Roy) Harper
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top