Hi,
This sounds like a strange question, but is there any function (or any other way) of passing a string in and getting out the field with the same name in a query?
Something like this (SalesTotals is a column in tblSalesTotal) :
SELECT someFunction ('SalesTotals') from database.schema.tblSalesTotal
The reason I ask is because I want to be able to dynamically select a field value based upon the string held in another table.
Thanks in advance,
Rob
This sounds like a strange question, but is there any function (or any other way) of passing a string in and getting out the field with the same name in a query?
Something like this (SalesTotals is a column in tblSalesTotal) :
SELECT someFunction ('SalesTotals') from database.schema.tblSalesTotal
The reason I ask is because I want to be able to dynamically select a field value based upon the string held in another table.
Thanks in advance,
Rob