I have the following line of code that is in asp. It is a report that has the following columns: Age, Name, Enrollment Date, and Closure Date.
dctReps.Item(strReportID).SelectedColumns = "dbo.CalculateAge(a.DateOfBirth,'" & Request.Form("txtEndDate") & "') as Age, a.Name, a.EnrollmentDate as 'Enrollment Date', a.ClosureDate as 'Closure Date'"
I need the Age column to say Age(in months). How do I add the (in months) part in the Age column. The rest of the columns were easy, all I had to do was add tick marks around what I wanted the column to say. However when I try to do the Age column like the rest, it does not work.
This is the error that I get when I change the Age column to as Age (in months)
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'Age'.
/reports/reportDisplay.asp, line 413
Any help will be appreciated. Thank you in advance.
dctReps.Item(strReportID).SelectedColumns = "dbo.CalculateAge(a.DateOfBirth,'" & Request.Form("txtEndDate") & "') as Age, a.Name, a.EnrollmentDate as 'Enrollment Date', a.ClosureDate as 'Closure Date'"
I need the Age column to say Age(in months). How do I add the (in months) part in the Age column. The rest of the columns were easy, all I had to do was add tick marks around what I wanted the column to say. However when I try to do the Age column like the rest, it does not work.
This is the error that I get when I change the Age column to as Age (in months)
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Invalid column name 'Age'.
/reports/reportDisplay.asp, line 413
Any help will be appreciated. Thank you in advance.