I am struglling with a query, although I may be going about it in the wrong way, so any help or points in the right direction is appreciated.
I have an import process that creates a table with a text field like below:
raw
12345A
15432B
61451C
I have another table that has the conversion values for the final alpha character in the raw field, like below:
zoned numeric
A 1
B 2
C 3
My first query creates a new numeric double field in the table and then my second query tries to populate it as follows:
Access returns "unknown error" when you run this.
I have an import process that creates a table with a text field like below:
raw
12345A
15432B
61451C
I have another table that has the conversion values for the final alpha character in the raw field, like below:
zoned numeric
A 1
B 2
C 3
My first query creates a new numeric double field in the table and then my second query tries to populate it as follows:
Code:
strSQL = "UPDATE [import file] SET [import file].[converted] = Left([import file].[raw],5) & Dlookup('[numeric]', '[tbl_conversion]', '[zoned] = ' & Right([import file].[raw],1) & ');"
DoCmd.RunSQL strSQL
Access returns "unknown error" when you run this.