Right OK. I hope I explain this well.:banghead:
I have a large table of customers that all have a postcode. I have 4 training centers in the country and i want a function that would suggest the closest center for them based on their postcode.
What i have done is created another table with the starting parts of all UK postcodes and then in the neighboring column i have manually written the closest center geographically. In excel i have created a suitable VLOOKUP function that selects the 2 leftmost characters and then looks those up in a separate table to return the correct value. All works great!
My question is, how can i do this in Access where my live data exists. I have created a query, put the expression in a column that returns to two left characters but then i am stuck. Getting it to do a DLOOKUP or equivilant just won't work Please see the example spreadsheet to see what I mean.
I have a large table of customers that all have a postcode. I have 4 training centers in the country and i want a function that would suggest the closest center for them based on their postcode.
What i have done is created another table with the starting parts of all UK postcodes and then in the neighboring column i have manually written the closest center geographically. In excel i have created a suitable VLOOKUP function that selects the 2 leftmost characters and then looks those up in a separate table to return the correct value. All works great!
My question is, how can i do this in Access where my live data exists. I have created a query, put the expression in a column that returns to two left characters but then i am stuck. Getting it to do a DLOOKUP or equivilant just won't work Please see the example spreadsheet to see what I mean.