D
Devon
I have a database with several tables. I have created two separate queries,
ABC query and XYZ query. I am then atempting to write an IIF statement to
compare the data on the two queries to state that if they are the same, put
in the word match, and if they are different, put in the word unmatch.
If the data is the same, (e.g. Apple), then it is working correctly and I am
getting the output I want. I am using the statement below.
IIF ([table1]![Fruits]=[table2]![Fruits], match, unmatched)
However, using a slightly different scenario. how do I create the IIF
statement if the fields in the two tables are not the same? For example,
what if a combo box is used. The values for the combo box would be 1=Cash,
2=Shares. What if one table shows a 1, and the other shows cash? The IIF
statement should show Matched, but I am not sure how to accomplish.
ABC query and XYZ query. I am then atempting to write an IIF statement to
compare the data on the two queries to state that if they are the same, put
in the word match, and if they are different, put in the word unmatch.
If the data is the same, (e.g. Apple), then it is working correctly and I am
getting the output I want. I am using the statement below.
IIF ([table1]![Fruits]=[table2]![Fruits], match, unmatched)
However, using a slightly different scenario. how do I create the IIF
statement if the fields in the two tables are not the same? For example,
what if a combo box is used. The values for the combo box would be 1=Cash,
2=Shares. What if one table shows a 1, and the other shows cash? The IIF
statement should show Matched, but I am not sure how to accomplish.