I’m trying to execute @commands from a form action. If I get a value returned from a DBlookup I open that document, if not then I open a blank form. I’ve tried @Do without success. The only other thing I can think of is to test the condition and use hide/when to present the correct action code. There must be a better way.