Spuriousbugfix
Programmer
I have written an ASP app using the activex viewer that allows users to add their own reports and run them in the web.
This has been working fine until now. I use the usual methods for running the report and logging it onto the correct database etc. Some users have written reports using table names that are aliased. This is now causing an error
Error Occurred Logging onto tables: The Table Person_1 could not be found.
I know why this is happening but am not sure how to fix it.
Here is the code I use
Set CRTables = Session("oRpt").Database.Tables
For Each CRTable in CRTables
CRTable.SetLogOnInfo cstr(ODBC),cstr(Database),cstr(User),cstr(Pass)
If CRTable.Location <> "Command" then
CRTable.Location = CRTable.Name
end if
Next
This has been working fine until now. I use the usual methods for running the report and logging it onto the correct database etc. Some users have written reports using table names that are aliased. This is now causing an error
Error Occurred Logging onto tables: The Table Person_1 could not be found.
I know why this is happening but am not sure how to fix it.
Here is the code I use
Set CRTables = Session("oRpt").Database.Tables
For Each CRTable in CRTables
CRTable.SetLogOnInfo cstr(ODBC),cstr(Database),cstr(User),cstr(Pass)
If CRTable.Location <> "Command" then
CRTable.Location = CRTable.Name
end if
Next