*use the UNC to alleviate the problem of drives being mapped differently lcDataFileLocation = '\\websrv\vfpdata\acis\data\' lcTempFileLocation = '\\websrv\vfpdata\acis\temp\' *create a variable to hold the name of a temporary table *sys(2015) works better since sys(3) may return a non-unique name when issued successionally on a fast computer. lctemptable = 't' + SUBSTR(SYS(2015),2,9) *copy the structure of pqtacis to the temporary table *this will allow multiple users to use the system simultaneously SELECT 0 USE lcDataFileLocation + 'pqtacis.DBF' SHARED COPY STRUCTURE TO lcTempFileLocation + lctemptable + '.dbf' WITH CDX USE *open the tables needed for the select USE lcTempFileLocation + lctemptable + '.dbf' IN 0 SHAREDWhen this code is executed I get the following error:
Error #: 15 Message: Not a table. Program: C:\PROGRAM FILES\FOXWEB\PROGRAMS\WEBNONSMPRICING\NONSMPOMQTYS.FXP Line # : 18 Line : USE lcTempFileLocation + lctemptable + '.dbf' IN 0 SHAREDSo I ran the same code locally from my machine and all worked OK. Then I ran the same code from the NT box and got the error that it was 'Not a Table'.