Hello Fellow Accessers,
I am currently stumped on a form/subform master/child relationship problem that likely has a simple solution. The project is one where the user has a drawing of a item to build, and based on what is shown on the drawing they must add multiple "tasks" for each drawing to define all the work that is required for that drawing. Each drawing is tracked by a autonumber primary key DrawingID.
I have a form that has cascading drop down boxes that filter a master pricing list (see attached image) so that the user can determine a price for each task that is required. The pricing for each task is dependent on a combination of variables which is why the drop down boxes are required. Each task along with the quantity of that item etc. is defined to a unique record in a table which has a autonumber primary key DrawingLineItemID. In the form, there is a subform, in continuous form view, which lists all of the drawing line items for that drawing. The purpose of this subform is to serve as a confirmation/summary to the user of all of the items that have already been added for that drawing. The master/child relationship is currently linked by the DrawingID, which allows the subform to show all of the drawing line items for that drawing.
The part I am struggling with, is I want to allow a "edit task" functionality (you can kind of see this on the far RHS of the attached screenshot, it is at the boundaries of my screen size). The purpose of the button would be to edit the details for that particular line item. The idea would be that the values in the comboboxes would be set to the existing respective values for that drawing line item, and then the user could change them as required.
So far I have tried using either the GoToRecord macro or the SetProperty macro to set the value of each combo box based on the subform values, but I have not had any success. I thought I might be able to change the master/child link to be the DrawingLineItemID, but then this would defeat the purpose of the subform. Can anyone provide any suggestions or similar examples for this type of scenario? More information on this database and the background table relationships is available at a previous post (located here: https://www.accessforums.net/forms/u...ble-42751.html).
Thanks,
Not So Advanced Beginner