Could you give us the rest of the code for the app? I cant see what the problem is from only seeing this with statement. We need to see the function (if possible) which parses the .SelectionFormula data.

Chris