Hi everyone.
I'm trying to print the last record in a table but the report seems to come up with no details, as if the table is enpty (it's not).
The code i'm using is :
DoCmd.OpenReport "rpt_invoice", acViewPreview, , "[invoice_no]=" & Me!INVOICE_NO
I tried to use the DMAX as to show the last record (by a query) but it doesn't recognize it.
Can anyone assist please?
Thanks.
I'm trying to print the last record in a table but the report seems to come up with no details, as if the table is enpty (it's not).
The code i'm using is :
DoCmd.OpenReport "rpt_invoice", acViewPreview, , "[invoice_no]=" & Me!INVOICE_NO
I tried to use the DMAX as to show the last record (by a query) but it doesn't recognize it.
Can anyone assist please?
Thanks.