Hello, I have a form that has a subform on it. When I push a cmdButton on the subform, it opens a report. This report is tied to a query in which it gets data WHERE MunID = subform.txtMunID.text...how can I put this WHERE statement in a query? I've tried
but it always shows a popup when the report opens asking for what [forms]![subform]![txtMunID] is. But, if I don't go through the main form, and just open the subform and push the cmdbutton..everything works good. This makes me think it has something to do with being a subform in a normal form...
Code:
WHERE MUNID = [forms]![subform]![txtMunID]