Hello everyone
I need help with a parameter query where I need to pass the table name into the FROM statement at run time. I have a number o ERP modules each in a different table so I just to get he table name inserted when I run it. The query I've tried gives an error. see my code below:
The error message I receive is that ERPTBL is not recognized. Any help with this is appreciate4d.
I need help with a parameter query where I need to pass the table name into the FROM statement at run time. I have a number o ERP modules each in a different table so I just to get he table name inserted when I run it. The query I've tried gives an error. see my code below:
Code:
PARAMETERS [SRC] TEXT (50);
SELECT OBJID
FROM (SELECT OBJID FROM ERPTBL) AS ERPSRC
WHERE ERPTBL = [SRC];
The error message I receive is that ERPTBL is not recognized. Any help with this is appreciate4d.