I’m trying to return values from table “tbl_Horizon200” that are not present in another larger table “tblVariants”. Instead of evaluating all of the records I would like to evaluate rows that meet additional criteria: tblVariants.Sample_Type = "HD200_QC"AND “tblVariants.Run_Name” matches the value of a text box on a form.Here is the query that I’ve tried, however, it’s not correct.
Please help to revise the query. Thanks
Code:
SELECT tbl_Horizon200.Gene, tbl_Horizon200.AA_change, tbl_Horizon200.[Standard Value], *
FROM tbl_Horizon200
WHERE (((Exists (SELECT * FROM tblVariants WHERE tbl_Horizon200.AA_change = tblVariants.AA_change AND tblVariants.Sample_Type = "HD200_QC" AND [Forms]![frmReview_One]![txtCurrentRun]))=False));