I am trying to set a custom token as a variable in a vbscript.
I set up the custom data source in the tools menu.
The line is:
strVariable = %#DB-Alias*"Select Field1 from Table where Field2 = whatever"%
I've also tried:
strVariable = "%#DB-Alias*"Select Field1 from Table where Field2 = whatever"%"
DB-Alias is the name I set up in custom data sources.
Either way it sets strVariable to null.
I'm not sure what I'm missing, any help would be appreciatted.
Thanks.