I have created a report that prompts the user for a table name (i.e. JC10) then it lists the column id and column names within the table.
Using SQL Server 2000 and Crystal Reports Developer 8.5
It uses the following SQL query:
SELECT
sysobjects."name",
syscolumns."name", syscolumns."colorder",
suser_sname()
FROM
{ oj "CRCDATA"."dbo"."sysobjects" sysobjects INNER JOIN "CRCDATA"."dbo"."syscolumns" syscolumns ON
sysobjects."id" = syscolumns."id"}
WHERE
sysobjects."name" = 'JC10'
ORDER BY
sysobjects."name" ASC
I would like to create a subreport that takes the table name (i.e. JC10) and retrieves the first (or last record) in the table. Each column name would display that column's sample value beside it. I need help on the subreport and the subreport's links to the main report.
Using SQL Server 2000 and Crystal Reports Developer 8.5
It uses the following SQL query:
SELECT
sysobjects."name",
syscolumns."name", syscolumns."colorder",
suser_sname()
FROM
{ oj "CRCDATA"."dbo"."sysobjects" sysobjects INNER JOIN "CRCDATA"."dbo"."syscolumns" syscolumns ON
sysobjects."id" = syscolumns."id"}
WHERE
sysobjects."name" = 'JC10'
ORDER BY
sysobjects."name" ASC
I would like to create a subreport that takes the table name (i.e. JC10) and retrieves the first (or last record) in the table. Each column name would display that column's sample value beside it. I need help on the subreport and the subreport's links to the main report.