U
UpRider
I'd like to use a function to name tables in SQL statements, e.g. the
function 'fcnTable' below:
strSQL = "SELECT MasterID, masText, masDate, masCode, masLT,
masDelete " _
This would allow me to use substitute tables in a test mode.
The question is, does Access allow this, and how do I write the function?
TIA
Barto
function 'fcnTable' below:
strSQL = "SELECT MasterID, masText, masDate, masCode, masLT,
masDelete " _
& "FROM fcnTable() " _
& "WHERE fcnTable().[masDate] between fcnDate() and fcnDate()
+ [masLT];"
This would allow me to use substitute tables in a test mode.
The question is, does Access allow this, and how do I write the function?
TIA
Barto