I have two tables in Access that I want to compare each of the two columns in both tables and if they match output the third column in the 2nd table. I am trying to do the below but it complains of syntax error
Select A.*
, IIF(A.col1=B.col2, (A.col2=B.col2, B.col3,"No match"),"No match") as Final_val
from A, B;
Also, B is a lookup table so not sure if I have better options than a cartesian join.
Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.