Hello All,
First off let me say these forums have helped me tremendously over the last month. I'm relatively new to Access, most of the previous databases I've designed were pretty simple and required very little VBA (a weakness for me). I have strong programming skills in other areas such as PHP, so I'm hoping that will help me somewhat here.
Anyway - here's what I need to do. I'm building an order system. When a user goes to add a Product to the OrderItems subform on the Orders main form, a button will appear depending on the type of Product that is selected because some Products require a configuration. The configuration that is needed is very long. I built it using a tabbed form and it includes 6 tabs, each with numerous questions. Because the Order form is simple and smaller than the Config form, I wanted to display the Config form as a popup subform that links the OrderItems table's ID field to the OrderConfigurations table's OrderItemID.
So, basically, when a user selects a Product requiring a configuration the "Configure" button is shown, and when clicked launches the modal/popup Configuration form. When the user saves the Configuration form I want the Configuration form to store the OrderItemID for the OrderItem that they just configured.
I have read a few threads on here that have informed me that there is no simple way to do this similar to linked the master/child fields of a main form/subform, but I'm wondering if this can be done programmatically when the user clicks the "Configure" button (which only appears when Products of a particular type are selected from Products dropdown).
I did think of one way of doing this, by including a textbox on the Configurations form called "OrderItemID" with a default value of =[Forms]![OrderItems]![ID] - but I'm not sure if this is a good way of accomplishing this.
Any help/advice is much appreciated.