NeutronFlux
Registered User.
- Local time
- Today, 13:06
- Joined
- Aug 20, 2012
- Messages
- 78
Hello. I've created a database of my company's suppliers (~400-500 entries). It has a continuous form (SupplierList) to search through the list of suppliers, along with search tools (keywords, categories, etc.). Originally, I worked off a flat table from Excel with suppliers in the format,
I also displayed the items like this in SupplierList. The form is meant to allow employees to quickly browse through our suppliers and their main contact information. More details and options would be presented by clicking on a supplier in the list.
At some point, I converted my tables into relational tables. In this case, I have tables called Suppliers and Contacts setup as
This benefits other parts of my application, but it makes it difficult to display a supplier with multiple contact information on form SupplierList. Through queries alone, I would either end up with repeating suppliers on the list or one contact information per supplier. I've used Allen Browne's ConcatRelated function, to get around this problem. But the performance hit is unbearable, especially when I add in search criteria. I believe it re-runs the function again for every contact field each time the query is accessed. For instance, using the function directly in the query would cause the program to freeze for about 10 seconds (on a very powerful computer) each time the query is accessed (query is to hide some records such as suppliers that have not yet received approval). Placing the function in the form elements gives better performance when displaying an unfiltered list, calculating only for rows currently visible on screen, which takes about 2 seconds each time I scroll without freezing. But, adding in search criteria (form filter) freezes the program for about 10 seconds.
To summarize my problem, I would like to have my one-to-many Supplier-Contact records displayed on a continuous form, showing one line per supplier with all that supplier's contacts on the same line, like what Allen Browne's ConcatRelated does. But, I would like to be able to display and filter these results without having to wait more than 2 seconds every time the form re-queries.
Thanks.
Code:
Name | Category | Contact 1, 2, ... | Phone # 1, 2, ... | Email 1, 2, ... | Website
At some point, I converted my tables into relational tables. In this case, I have tables called Suppliers and Contacts setup as
Code:
Table [Suppliers]
Supplier_ID, Name, Category and Website
Table [Contacts]
Contact_ID, Supplier_ID, Contact_Name, Phone, Email
To summarize my problem, I would like to have my one-to-many Supplier-Contact records displayed on a continuous form, showing one line per supplier with all that supplier's contacts on the same line, like what Allen Browne's ConcatRelated does. But, I would like to be able to display and filter these results without having to wait more than 2 seconds every time the form re-queries.
Thanks.