I'm creating a database on Access where to manage the products some farmers have. Now, i created a form from a table that relates the FarmerID with ProductID (both primary keys). I put a button to create a new record, but as expected, it asks the input of the FarmerID and ProductID. I wanted that by clicking the "add new product" button, it would already know it's for the Farmer i'm vieweing, so i would only need to input the ProductID. How can i do it?
Relevant info: For each farmer i click on "manage products", where i put the condition [FarmerID]=[Forms]![F_Farmer]![FarmerID], so that the manage products window only shows entries with FarmerID = the one i selected. Now clicking on the new entry, as it shows on the 3rd pic, has neither FarmerID nor ProductID, but if the Farmer is FarmerID=2 like the pictures i wanted to add the product for that farmer without having to enter FarmerID again.