Status: I have a single report type that is generated from a query. I use a form (Call it "F") with search box macros ("Combo1" and "Combo2") that selects criteria from the query (call it "Q") to then generate the report (call it report "A"). This works fine.
Question: Now I'd like to set a macro from a different/unique report (call it report "B"), and make that macro'ed Text Box (called "DiseaseName") value then select criteria from the "Q" query and generate report "A" back to me, as this new value criteria. I hope that makes sense.
Problem: When I add in this new criteria/macro from "B", it'll pop up a box that wants me to input criteria values for "combo1" and "combo2" again (or leave them blank). If I leave them blank, it's fine and the A report generates as I would like.
WHAT I HOPE TO DO: How do I get rid of that pop-up box looking for the "Combo1" an then "Combo2" value. Likewise when I search from the initial form, it works great but will pop up a box looking for value "DiseaseName" from the "B" report.... again, if I leave the pop-up blank, my report generate fines.
FROM (([newHGNC protein-coding genes] INNER JOIN Clinvar_gene_condition_source_id ON [newHGNC protein-coding genes].[Approved Symbol] = Clinvar_gene_condition_source_id.GeneSymbol) INNER JOIN [XYZ fields] ON Clinvar_gene_condition_source_id.GeneID = [XYZ fields].GeneID) INNER JOIN Clinvar_gene_condition_source_id_NO_DUPL ON ([XYZ fields].GeneID = Clinvar_gene_condition_source_id_NO_DUPL.GeneID) AND ([newHGNC protein-coding genes].[Approved Symbol] = Clinvar_gene_condition_source_id_NO_DUPL.GeneSymbo l)
WHERE ((([newHGNC protein-coding genes].[Approved Symbol]) Like "*" & [Forms]![F]![Combo1] & "*") AND ((Clinvar_gene_condition_source_id.DiseaseName) Like "*" & [Forms]![F]![Combo3] & "*")) OR (((Clinvar_gene_condition_source_id.DiseaseName) Like "*" & [Reports]![B]![DiseaseName] & "*"));