I have a form for my customers (created from a table) and I want to pull information from my Invoices table to sum unpaid invoices that are 30 days or older for the specific record (customer) displayed on the screen. My columns in the invoices table are:
Invoice, Invoice Date, Amount, Date Paid.
In an unbound text box for the properties control source I've entered so far:
=DSum("[Amount]","[Invoices]",[CompanyID]=[txtCompanyID]
What should the remaining criteria be to find the records in the Date Paid column that are null (no date entered yet as they aren't paid) and to total all unpaid invoices that are 30 or 30+ days old? Thanks!
Invoice, Invoice Date, Amount, Date Paid.
In an unbound text box for the properties control source I've entered so far:
=DSum("[Amount]","[Invoices]",[CompanyID]=[txtCompanyID]
What should the remaining criteria be to find the records in the Date Paid column that are null (no date entered yet as they aren't paid) and to total all unpaid invoices that are 30 or 30+ days old? Thanks!