Hello,
I have attached a picture to illustrate my needs but I will provide some back ground first. I have 4 tables; one of which I call the [Master] Table, it contains information such as the item's name and a given ID (auto-number). The other tables contain information such as descriptions and a 'Program' ID (auto-number).
The 3 'Program' tables may be linked via the [Master].ID if there is a relation. Currently in my form [Master Details] I ask a simple YES or NO question to see if there is a relation. (see picture) If there is a YES specified in my Master Table for one of the Programs I manually go into the appropriate program table and add the [Master].ID into a new row creating a new Program ID for that item.
What I need is this [Master].ID to be generated automatically if YES is selected.
In the jpeg it shows the Master table at the top. Below this is my form where we create new items and select the appropriate linkages. Below this is one of my program tables [Scribe] where I input the [Master].ID and create a new row with a new Scribe ID. I would like the VBA to start when the Save and New button is clicked in the form.
Thanks.