>lcMyMacroSubst ="Thisform." + lcLastActiveControlName+".SetFocus" >&lcMyMacroSubstThere are several ways to do this. Instead of the macro command execution above you could use EVAL, although it requires the "( )" on the setfocus:
EVAL("Thisform." + lcLastActiveControlName+".SetFocus()")If you were trying before to embed the macro in the command, you have to put a "." to terminate the macro and also a "." between it and the setfocus:
Thisform.&lcLastActiveControlName..SetFocus