hey man, this will depend on how your database front ends work, for example are the forms displaying the data through data binding directly from a table or is the data displayed through setting properties of controls on a form using select statements.
What I'd recommend is essentially replacing the tables in the database's with queries, the queries contain all the columns of the tables. In the queries you then apply the filter by location. The queries only show the data for each location but still have the structure of the original tables. If you do this then there will be very little to change in the front ends.
There's a number of ways you can do this... the absolute best way to do it would be to create stored procedures on the server that returned result sets matching the original tables. Each stored procedure would require an location parameter. You'd call that procedure using ado recordsets and then, using them, set the forms recordset. As to storing the location to file well that again depends on the system's set up. You could just store on file in the directory of the database front end rather than on every users pc.
This depends on how your system is set up.
www.dsmyth.net/blog |