Hello All,
I need to create a Cross-Tab report using two tables (SQL Server 2K) where – for whatever reason – the PK field in tbl1 is an integer and the FK in tbl2 is a varchar. Therefore, I can not make a physical link in Crystal.
The only way I thought I could get around this problem was to use a formula to simulate the link.
I have no other way to verify the data so my question is this: Does this work? (it seems to) and is there a better way to accomplish this? Would a SQL expression be better?
I‘m using CR 10.
Thanks for any/all advice!
- Tom
I need to create a Cross-Tab report using two tables (SQL Server 2K) where – for whatever reason – the PK field in tbl1 is an integer and the FK in tbl2 is a varchar. Therefore, I can not make a physical link in Crystal.
The only way I thought I could get around this problem was to use a formula to simulate the link.
Code:
{tbl1.ID} = ToNumber({tbl2.ID})
I have no other way to verify the data so my question is this: Does this work? (it seems to) and is there a better way to accomplish this? Would a SQL expression be better?
I‘m using CR 10.
Thanks for any/all advice!
- Tom