CoSpringsGuy
IS-IT--Management
Crystal 2012, Intersystems Cache DB
linked two tables together on a left join Col_Inv_Stats_MTD.Collector_ID and User_Master.USERID
I need all records in left table that do not have a match on the above link so my record selection says
isnull({User_Master.USER_ID})
so for two reasons i needed to change it a little. 1) I dont need the right table at all. I just used it initially to find the IDs that NEVER exist in that table. 2) I know know the 4 IDs I need for future reporting.
so I changed my record selection code to:
{Col_Inv_Stats_MTD.COLLECTOR_ID} in ["AGE","ATT","LEG","REG"] // nothing returns
then tried
{Col_Inv_Stats_MTD.COLLECTOR_ID} = "AGE" // nothing returns
those are 4 of the IDs that WERE returned with the initial code... I get no results even though I know they are there
I also tried to creat SQL variable {fn CONVERT( Col_Inv_Stats_MTD . COLLECTOR_ID ,SQL_VARCHAR )} and replaced {Col_Inv_Stats_MTD.COLLECTOR_ID} above in all examples and still get nothing
this code does work however
instr({Col_Inv_Stats_MTD.COLLECTOR_ID},"AEE") > 0
or
instr({Col_Inv_Stats_MTD.COLLECTOR_ID},"ATT") > 0
or
instr({Col_Inv_Stats_MTD.COLLECTOR_ID},"LEG") > 0
or
instr({Col_Inv_Stats_MTD.COLLECTOR_ID},"REG") > 0
Anyone have an explanation for why this might be happening? I guess I can work around it but it is very odd to me and Im hoping someone else can explain it to me.
_____________________________________
Crystal Reports 2011 and XI
Intersystems Cache 2012 ODBC connection
linked two tables together on a left join Col_Inv_Stats_MTD.Collector_ID and User_Master.USERID
I need all records in left table that do not have a match on the above link so my record selection says
isnull({User_Master.USER_ID})
so for two reasons i needed to change it a little. 1) I dont need the right table at all. I just used it initially to find the IDs that NEVER exist in that table. 2) I know know the 4 IDs I need for future reporting.
so I changed my record selection code to:
{Col_Inv_Stats_MTD.COLLECTOR_ID} in ["AGE","ATT","LEG","REG"] // nothing returns
then tried
{Col_Inv_Stats_MTD.COLLECTOR_ID} = "AGE" // nothing returns
those are 4 of the IDs that WERE returned with the initial code... I get no results even though I know they are there
I also tried to creat SQL variable {fn CONVERT( Col_Inv_Stats_MTD . COLLECTOR_ID ,SQL_VARCHAR )} and replaced {Col_Inv_Stats_MTD.COLLECTOR_ID} above in all examples and still get nothing
this code does work however
instr({Col_Inv_Stats_MTD.COLLECTOR_ID},"AEE") > 0
or
instr({Col_Inv_Stats_MTD.COLLECTOR_ID},"ATT") > 0
or
instr({Col_Inv_Stats_MTD.COLLECTOR_ID},"LEG") > 0
or
instr({Col_Inv_Stats_MTD.COLLECTOR_ID},"REG") > 0
Anyone have an explanation for why this might be happening? I guess I can work around it but it is very odd to me and Im hoping someone else can explain it to me.
_____________________________________
Crystal Reports 2011 and XI
Intersystems Cache 2012 ODBC connection