I'm trying to pull the past x days of transactions via a select query that's using a pass through.
My select looks like this:
SELECT [pt get fulfillment invoices].*
FROM [pt get fulfillment invoices]
WHERE ((now())-[pt get fulfillment invoices].[TRX_DATE]) >=[Past ? Days];
Past ? Days is for the user to input a number.
I've used something similar before directly in the passthrough using round(sysdate)instead of now() but I can't seem to use "sysdate" in the select query and I can't get the passthrough to directly accept a user input.
-Tracy
My select looks like this:
SELECT [pt get fulfillment invoices].*
FROM [pt get fulfillment invoices]
WHERE ((now())-[pt get fulfillment invoices].[TRX_DATE]) >=[Past ? Days];
Past ? Days is for the user to input a number.
I've used something similar before directly in the passthrough using round(sysdate)instead of now() but I can't seem to use "sysdate" in the select query and I can't get the passthrough to directly accept a user input.
-Tracy