I'm working on a database that will create invoices and each invoice will have 5 items per page. I also created 2 (LayA & LayB) printing layouts because I need the invoice data to be displayed on the page differently when printed.
What I would like to do is create a script that will allow me to move through layouts if a condition is true. For example:
If the invoice has 5 items, it'll use layA to do the printing, but if the invoice has more than 5 items, it'll use LayB to do the printing.
I tried using the "if function" but I wasn't able to make it work the way I wanted it. I'm new to scripting so it's no surprise I can't figure it out on my own. I hope someone can help. Thanks.