Hi Everyone,
I've looked all over the POSTS for something on the subject of using CONSTANTS in a WHERE clause of an SQL Select statement. I can't find anything. This is a sample:
The constant might look like this in the Module:
Public Const FromThisDateToThatDate = "FromDate>=3/1/2015 AND ToDate<=4/1/2015 AND Status=1 AND ...etc."
SELECT * FROM tblTable
Is it possible to use a Public Constant in this way?
Lamar
I've looked all over the POSTS for something on the subject of using CONSTANTS in a WHERE clause of an SQL Select statement. I can't find anything. This is a sample:
The constant might look like this in the Module:
Public Const FromThisDateToThatDate = "FromDate>=3/1/2015 AND ToDate<=4/1/2015 AND Status=1 AND ...etc."
SELECT * FROM tblTable
WHERE FromThisDateToThatDate
ORDER BY ID
Is it possible to use a Public Constant in this way?
Lamar