I thought that I posted this on another forum but have been unable to locate it. My apologies if this is a repeat.
I’m using Access 2016 with a split database.
Each record (project) can have multiple Districts and Treatments which have been set-up as a many-to-many relationship with junction tables. One forms contains a datasheet subform of all projects that allows the user to filter all project data.
I have incorporated Allen Brown’s code “Concatenate values from related records” (http://allenbrowne.com/func-concat.html) in two separate queries (one for District and one for Treatment) so these values can be included into the datasheet subform.
In an effort to speed up this code, I created two separate modules that are called by the form’s open event that delete all data in temporary tables and then repopulate the temp tables with updated data from the concatenated queries. The temp tables are located in the front end are used in the query that populates the subform. However, it’s still very slow. The backend resides on a file server and the form takes over a minute to open.
Any idea how I can speed up this process?