SELECT DATEDIFF(day, o.datecreated, getdate()) AS no_of_days_pastdue
I'm just counting the number of days since a invoice was created and I am
not sure how to do this in AS.
Has anyone follow this article?
http://blogs.conchango.com/christianwade/archive/2006/04/30/3901.aspx
I keep getting syntax errors. I am using AS 2000.
DATEDIFF("d", [Calendar].[Day], Now())
Not sure why I am getting unknown dimension for my calendar.
WITH MEMBER [Measures].[DaysPast] AS
'DATEDIFF("d",[Calendar].CurrentMember, date())'
SELECT {[Measures].[DaysPast], [Measures].[Amount Due]} on columns,
[Account Invoices].[Account Name].members on rows
FROM [Account Invoices History]
but I get an #error in the dayspast field.
Does anyone know why this would not work?
[Account Invoices].[Account Name].CurrentMember.Properties("Days Past")
Help, does anyone know how to get datediff to work in AS 2000?