I have a networked EPOS application where the .exe and free tables are stored on a single machine. Other machines on the network run versions of the centrally stored .exe
whilst accessing and editing the shared tables through a mapped drive.
Up to now I have had no need to exclusively open any of the tables so have managed to avoid any sharing violations.
I now wish to run an analysis report from any one of the machines whilst the tables are being accessed by the others.
Overview of analysis function:-
Query the main table and place relevant records into a cursor in stock code order.
Step through the cursor, record by record and populate an additional table with totals of items sold etc.
Create a report from this table in supplier order.
This works properly but each time I run the analysis I need to delete all records from the previously populated additional table and pack it. Naturally Pack causes a sharing violation.
I have tried to set the additional table to exclusive access but to no avail.
All the tables within the data environment of the form are set to shared with the location being z:.
I thought that setting to location of the additional table, within the data environment to c:\whatever and making it exclusive would force each instance of the app
to use its own local version of the additional table and cure the sharing violation but I still get the sharing error.
I hope I have explained my problem well enough for someone to point me in the right direction.
Keith
whilst accessing and editing the shared tables through a mapped drive.
Up to now I have had no need to exclusively open any of the tables so have managed to avoid any sharing violations.
I now wish to run an analysis report from any one of the machines whilst the tables are being accessed by the others.
Overview of analysis function:-
Query the main table and place relevant records into a cursor in stock code order.
Step through the cursor, record by record and populate an additional table with totals of items sold etc.
Create a report from this table in supplier order.
This works properly but each time I run the analysis I need to delete all records from the previously populated additional table and pack it. Naturally Pack causes a sharing violation.
I have tried to set the additional table to exclusive access but to no avail.
All the tables within the data environment of the form are set to shared with the location being z:.
I thought that setting to location of the additional table, within the data environment to c:\whatever and making it exclusive would force each instance of the app
to use its own local version of the additional table and cure the sharing violation but I still get the sharing error.
I hope I have explained my problem well enough for someone to point me in the right direction.
Keith