hi. it's me again. it worked. instead of putting [dates].[weeks].[week] in the function i should have put [dates].[weeks].[term].
thanks anyway

Christina
************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...