Hi, I have a report that I want to run with vba. It is a receipt.
Here is the code:
DoCmd.OpenReport "rpt_Down_Payment_Receipt", acViewPreview, , "DNLID = " & DNLID
The issue is the data for the report is based on a one to many relationship.
So Main Record PK DNLID, subform PK RECID, FK DNLID...