A family of Microsoft relational database management systems designed for ease of use.
SELECT StudentID, Pass1, Pass2, IIF([Pass1]=[Pass2],1,0) AS Match
INNER JOIN on Table1query.StudentID = Table2query.StudentID
FROM Table1query, Table2query
ORDER BY StudentID;
Or, in Query Design mode add the two queries, Join on StudentID, Add the StudentID, Pass1 and Pass2 columns, then add a 4th column with the expression:
Match: IIF([Pass1]=[Pass2],1,0)
Hope this helps, Scott<> P.S. Please post a response to let us know whether our answer helped or not. Microsoft Access MVP 2009 Author: Microsoft Office Access 2007 VBA Technical Editor for: Special Edition Using Microsoft Access 2007 and Access 2007 Forms, Reports and Queries