flname='at17' mdest2=[D:\Backup/] nresult=SQLEXEC(m.con,"backup database &flname to disk='&mdest2\&flname..bak'") IF nresult<0 aerror(laerror) messagebox(laerror[1,2]) return(0) ELSE MESSAGEBOX("Done") ENDIThe codes work fine in Development mode but when I run codes in EXE then it shows this error message