Question : Inner join on 2 fields with different data types.

Afternoon,

I have 2 tables which I wish to link on in order to update one of the tables. One table has the column "ACode" as a number, the other has "Answer" as text.
Before this query is run, all linked fields contain numbers.

I wish to update "Answer" so that 1 shows "Yes" and 2 shows "No", along with other codes which refer to text counterparts.
I am capable of doing this in VBA, however I wanted to make a query so that it was more friendly for users.

Please see the SQl below.
Code Snippet:
1:
UPDATE tblQuestionAnswer INNER JOIN tblVerbatimReport ON (tblQuestionAnswer.QType = tblVerbatimReport.QType) AND (tblQuestionAnswer.ACode = tblVerbatimReport.Answer) SET tblVerbatimReport.Answer = tblQuestionAnswer.ANameShort;

Answer : Inner join on 2 fields with different data types.

partially supported... not in the query designer, but well in the SQL itself...

you might try this:

tblQuestionAnswer.ACode & "" = tblVerbatimReport.Answer
Random Solutions  
 
programming4us programming4us