Hi,
I am trying to generate a SQL-string from Access to make a UPDATE from excel to the Access database.
This will of course not work as Italy is not a the ID, but the Country name itself. Access provides Combobox to lookup the relevant values and related keys when updating values, but how do the same in the SQL code. I tried something like in the attached picture to generate the code, but it did not work.
I am trying to generate a SQL-string from Access to make a UPDATE from excel to the Access database.
Code:
UPDATE CountryTbl INNER JOIN EmployeeTbl ON CountryTbl.CountryID = EmployeeTbl.Country_ID SET EmployeeTbl.Country_ID = "Italy" WHERE (((EmployeeTbl.EmpID)=50));
This will of course not work as Italy is not a the ID, but the Country name itself. Access provides Combobox to lookup the relevant values and related keys when updating values, but how do the same in the SQL code. I tried something like in the attached picture to generate the code, but it did not work.