Actually, you can create a public VBA function, and thus have that return the global VBA variable, or anything else.
As a result, such expressions are in fact NOT fixed, and can change, and you CAN pass values to that function from SQL.
eg:
select id, FirstName, LastName...