Sure
Write a
VB function that returns a string and call the function in the dataset expression. The only caveat is that the enture SQL query must be in the form of a string expression:
="SELECT some columns FROM some tables " &
"WHERE " & Code.MyWhereClauseFunction()
Paul Turley, MCSD, MCDBA, MCT, MSF Practitioner