I have two tables, Product and Inspection. Each product record has a list of inspection points for that product. I have versions, so that if the inspection changes, I can create a new checklist. The product number and version comprise the key.
The Inspection records record actual inspections of particular products. When an inspection form is brought up, the user can select a product (via a combo box), and text boxes are populated with the inspection point text from that product record. When the inspection is stored, it stores the product number and version so that I know which version was used during the inspection.
My question: is there an easy way to have the form automatically select the latest version (largest version number, integer, for a given product number) when the user selects the product number? I tried to put a select statement into the version field on the form, but Access didn't like that.
Thank you in advance for your thoughts.