Hi -
I have a query this is using two tables. Each table has a field called "CostCenter" - so I have table1.costcenter and table2.costcenter. Table1.CostCenter has 3 columns in it. I'm trying to build a query that will display on those CostCenter fields that do not match. I have it now to a point where it will output the following:
AEmployee1 ACostCenterTable1 ACostCenterTable2
BEmployee1 BCostCenterTable1 BCostCenterTable2
CEmployee1 CCostCenterTable1 CCostCenterTable2
However in the criteria for Table1.CostCenter I've placed:
"Not [Table2.CostCenter]"
and that doesn't work (it displays all records) so I put the following in Table2.CostCenter:
"Not [Table1.CostCenter]"
... and it still shows all the records. Investigation showed that when it does the compare, it's actually comparing Column(0) to the CostCenter, and those will never match, so I'm trying to find out how to get it to reference Column(1) in the criteria.
I've tried [Table1.CostCenter].Column(1), [Table1.CostCenter.Column(1)], [[Table1.CostCenter].Column(1)], but I just can't seem to get the syntax.
Any suggestions?
I have a query this is using two tables. Each table has a field called "CostCenter" - so I have table1.costcenter and table2.costcenter. Table1.CostCenter has 3 columns in it. I'm trying to build a query that will display on those CostCenter fields that do not match. I have it now to a point where it will output the following:
AEmployee1 ACostCenterTable1 ACostCenterTable2
BEmployee1 BCostCenterTable1 BCostCenterTable2
CEmployee1 CCostCenterTable1 CCostCenterTable2
However in the criteria for Table1.CostCenter I've placed:
"Not [Table2.CostCenter]"
and that doesn't work (it displays all records) so I put the following in Table2.CostCenter:
"Not [Table1.CostCenter]"
... and it still shows all the records. Investigation showed that when it does the compare, it's actually comparing Column(0) to the CostCenter, and those will never match, so I'm trying to find out how to get it to reference Column(1) in the criteria.
I've tried [Table1.CostCenter].Column(1), [Table1.CostCenter.Column(1)], [[Table1.CostCenter].Column(1)], but I just can't seem to get the syntax.
Any suggestions?