Hi guys, I have a new project and I need some help.
I have an Access form in a spreadsheet view that retrieves data from a table.
In one of the columns I have entered an event procedure, where when I click on the field it opens a second form with the data of the specific line of the record based on an ID field (i.e. DoCmd.OpenForm "2P_FORM", , , "[ID] = Forms![MASTER_DATA]![ID]").
Now I want to enter another event procedure inside the second form (by placing a button) that will open a third form with these exact data (i.e. DoCmd.OpenForm "2P_TRACK_frm", , , "[ID] = Forms![2P_FORM]![ID]") where I will add some more data in new fields related with this record that didn't exist in the initial table.
Finally, I want all these data (the initial and the new additions entered in the third form) to be stored in another existing table, different than the first one.
So the short story is:
a) I have a form with 1000 lines, with unique ID codes stored in a table
b) I click on a specific field of each line and only these data of the line open in a second form
c) A button in the second form should open a third form with the same data + empty fields that I will store more information
d) Finally all the new data will be stored in a new table
So far I have managed to open every new form with the selected data I want from the previous form (using the above VB codes) but I can't save them to the last table.
Any ideas on how to achieve that?
Many thanks
I have an Access form in a spreadsheet view that retrieves data from a table.
In one of the columns I have entered an event procedure, where when I click on the field it opens a second form with the data of the specific line of the record based on an ID field (i.e. DoCmd.OpenForm "2P_FORM", , , "[ID] = Forms![MASTER_DATA]![ID]").
Now I want to enter another event procedure inside the second form (by placing a button) that will open a third form with these exact data (i.e. DoCmd.OpenForm "2P_TRACK_frm", , , "[ID] = Forms![2P_FORM]![ID]") where I will add some more data in new fields related with this record that didn't exist in the initial table.
Finally, I want all these data (the initial and the new additions entered in the third form) to be stored in another existing table, different than the first one.
So the short story is:
a) I have a form with 1000 lines, with unique ID codes stored in a table
b) I click on a specific field of each line and only these data of the line open in a second form
c) A button in the second form should open a third form with the same data + empty fields that I will store more information
d) Finally all the new data will be stored in a new table
So far I have managed to open every new form with the selected data I want from the previous form (using the above VB codes) but I can't save them to the last table.
Any ideas on how to achieve that?
Many thanks