LPARAMETERS tcName1, tcName2 lcUser = IIF(VARTYPE(tcName1)="C", tcName1, "") lcUser = lcUser + IIF(VARTYPE(tcName2)="C", " " + tcName2, "")>Thanks Daniel - this works. Only one small problem. The user names to pass have a space in them. Do you know if there a way to deal with "myprg.exe john smith"?