Hi All,
I am looking for a better way to achieve data entry to two tables from one field on a form, and I am convinced that there must be a better way to do it then how I've done it.
The Problem:
I have a form on which the user enters data, one field of which is a combo box based list of equipment affected by a particular instruction. The list of affected equipment is large, and ever changing- hence the user needs to be able to enter data to the table on which the combo box is based, as well as to the table to which the combo box is providing information. IE, the combo box pulls information from one table and gives it to another, but if the table from which data is pulled does not contain the desired information, the user can enter the data once, and pass it to both tables.
My (bodged) Solution:
I've created an append query that adds all records in the affected equipment field from the main table to the table that provides the information to the combo box, and set the properties of the combo box table so that duplicates aren't accepted. This ensures that all the information is included in both tables, but is not repeated.
This solution works fine, but I can imagine that running this query every time the add information form is opened will slow down operations, especially as the database grows and grows.
Does anyone know of a better way to achieve the same result? I am convinced that my method is far too ineffecient to be used in the full database.
Thanks in anticipation,
Dave
I am looking for a better way to achieve data entry to two tables from one field on a form, and I am convinced that there must be a better way to do it then how I've done it.
The Problem:
I have a form on which the user enters data, one field of which is a combo box based list of equipment affected by a particular instruction. The list of affected equipment is large, and ever changing- hence the user needs to be able to enter data to the table on which the combo box is based, as well as to the table to which the combo box is providing information. IE, the combo box pulls information from one table and gives it to another, but if the table from which data is pulled does not contain the desired information, the user can enter the data once, and pass it to both tables.
My (bodged) Solution:
I've created an append query that adds all records in the affected equipment field from the main table to the table that provides the information to the combo box, and set the properties of the combo box table so that duplicates aren't accepted. This ensures that all the information is included in both tables, but is not repeated.
This solution works fine, but I can imagine that running this query every time the add information form is opened will slow down operations, especially as the database grows and grows.
Does anyone know of a better way to achieve the same result? I am convinced that my method is far too ineffecient to be used in the full database.
Thanks in anticipation,
Dave