While developing in FoxPro DOS, the following SELECT generated a "File is in use" error.
SELECT * DISTINCT ;
FROM adrsbook ;
WHERE rela_code = m.inv_code .OR> ;
rela_code = m.serv_code ;
INTO TABLE pickaddr ;
ORDER BY 2
Points:
1 The file adrsbook can be open or closed and still
generate the error. No other files are open.
The pickaddr does not exist before running the SELECT.
2 When the SELECT executes, the adrsbook dbf is opened.
3 The SELECT statement works if "INTO CURSOR" is used.
4 Changing the sequence of the parts within the SELECT
does not correct the error.
5 Removing DISTINCT and the WHERE statments did not
correct the error.
The adrsbook dbf is to be use for a popup and requires a blank record as an option. Using the cursor does no permit the appending of a blank record nor using COPY STRUCTURE to create a dbf from a cursor.
I restored my copy of FoxPro DOS without correction the problem.
Since working in FoxPro DOS for 10+ years, this should not be a problem.....
Any suggestion would be appreciated...
Have a great week...
SELECT * DISTINCT ;
FROM adrsbook ;
WHERE rela_code = m.inv_code .OR> ;
rela_code = m.serv_code ;
INTO TABLE pickaddr ;
ORDER BY 2
Points:
1 The file adrsbook can be open or closed and still
generate the error. No other files are open.
The pickaddr does not exist before running the SELECT.
2 When the SELECT executes, the adrsbook dbf is opened.
3 The SELECT statement works if "INTO CURSOR" is used.
4 Changing the sequence of the parts within the SELECT
does not correct the error.
5 Removing DISTINCT and the WHERE statments did not
correct the error.
The adrsbook dbf is to be use for a popup and requires a blank record as an option. Using the cursor does no permit the appending of a blank record nor using COPY STRUCTURE to create a dbf from a cursor.
I restored my copy of FoxPro DOS without correction the problem.
Since working in FoxPro DOS for 10+ years, this should not be a problem.....
Any suggestion would be appreciated...
Have a great week...