How do I use a variable as a file pathe in the append from command?
This is what I have...
USE cse_sdm.dbf IN 0 EXCLUSIVE
SELECT cse_sdm
zap
x = (substr(cmonth(date()),1,3)+alltrim(str(year(date()))))
fpath = "\\phoenix\e\" + x + "\td.xls"
APPEND FROM (fpath) TYPE XL5 SHEET
The error I get is...
"Missing Expression"
The only way I get it to work is to hardcode the path.
Thanks in advance for your help.
This is what I have...
USE cse_sdm.dbf IN 0 EXCLUSIVE
SELECT cse_sdm
zap
x = (substr(cmonth(date()),1,3)+alltrim(str(year(date()))))
fpath = "\\phoenix\e\" + x + "\td.xls"
APPEND FROM (fpath) TYPE XL5 SHEET
The error I get is...
"Missing Expression"
The only way I get it to work is to hardcode the path.
Thanks in advance for your help.