Hi All,
I am fast approaching my wits end :banghead:. I have a very simple query to run but for whatever reason, I am not getting the results that I want. I am working with 2 tables. Table_A contains a field (Field_Status) that has 10+ values which I want to map onto a smaller set of values. Table_B Contains corresponding field (Field_Status) and 4 other fields (CountryA_Conversion, CountryB_Conversion...). The idea is to run a query compare the value in Table A - Field_Status to Table_B - Field_Status and return corresponding value from Table_B - CountryA_Conversion.
The Access generated SQL below works as expected as it only returns records for CountryA_Conversion
Once I try and return the value for CountryA_Conversion and CountryB_Conversion, the query falls over and doesnt return any records. The SQL below returns no records
Table_B has no primary key. If someone could please explain why this wont work, i would be very greatful
Thanks for your help
I am fast approaching my wits end :banghead:. I have a very simple query to run but for whatever reason, I am not getting the results that I want. I am working with 2 tables. Table_A contains a field (Field_Status) that has 10+ values which I want to map onto a smaller set of values. Table_B Contains corresponding field (Field_Status) and 4 other fields (CountryA_Conversion, CountryB_Conversion...). The idea is to run a query compare the value in Table A - Field_Status to Table_B - Field_Status and return corresponding value from Table_B - CountryA_Conversion.
The Access generated SQL below works as expected as it only returns records for CountryA_Conversion
PHP:
SELECT tblcMDR_Input.[Global SAPStatus], tbl_SAP_Conversion.[GL Conversion]
FROM tblcMDR_Input LEFT JOIN tbl_SAP_Conversion ON tblcMDR_Input.[Global SAPStatus] = tbl_SAP_Conversion.[SAP Status];
Once I try and return the value for CountryA_Conversion and CountryB_Conversion, the query falls over and doesnt return any records. The SQL below returns no records
PHP:
SELECT tblcMDR_Input.[Global SAPStatus], tbl_SAP_Conversion.[GL Conversion], tbl_SAP_Conversion.[LA Conversion]
FROM tblcMDR_Input LEFT JOIN tbl_SAP_Conversion ON (tblcMDR_Input.[Lat Am SAPStatus] = tbl_SAP_Conversion.[SAP Status]) AND (tblcMDR_Input.[Global SAPStatus] = tbl_SAP_Conversion.[SAP Status]);
Table_B has no primary key. If someone could please explain why this wont work, i would be very greatful
Thanks for your help