I have an Access 2010 table with two columns; latitude and longitude. I want to create a third column called loc that combines both values into one and separates them with a comma like (latitude, longitude).
I have gotten this far which makes a select query:
SELECT ([latitude] & ", " & [longitude]) AS loc
FROM AllCountries;
This displays the intended result. However, I cannot copy this information into the third column. I tried appending it like this but I got key value errors for all records:
INSERT INTO AllCountries ( loc )
SELECT ([latitude] & ", " & [longitude]) AS loc
FROM AllCountries;
Any ideas how this can be done? What am I doing wrong?
Try this (I assume column loc is already created with no values):