Hi,
I have two forms (two different tables)that I want to link. One is for record creation,(frmActionPlan), and the other (frmOccurrence), is a reference only to the Occurrence that the Action plan is being created for. They share a common field called "OccurrenceID" (primary key in OccurrenceTBL). I want to populate the first form (frmActionPlan) with only the OccurrenceID field (selected from a list of occurrences)and then have a separate window (frmOccurenceDetail), remain open and display the detail of the OccurrenceTBL based on the OccurrenceID in (frmActionPlan). The data in the (frmOccurrence) form should change appropriately when the record is changed on frmActionPlan using the navigation buttons.
Scenero:
Open frmActionPlan and click cmdSelectOccur,
which opens frmselectOccur, then
select Occurrence from DataGrid, which reopens frmActionPlan, and creates new ActionPlan.
Datagrid populates "OccurrenceID" field in new ActionPlan and Opens frmOccurrenceDetail
frmOccurrenceDetail displays the detail of the Occurrence based on the OccurrenceID in frmActionPlan.
I have code for most of the actions here, but it is really long. I will post if you want it. All I need to know is how to make the content of frmOccurrenceDetail reflect the proper information based on whatever OccurrenceID field is in the frmActionPlan.
I am a new programmer and I know this is probably a stupid question, sorry.
I have two forms (two different tables)that I want to link. One is for record creation,(frmActionPlan), and the other (frmOccurrence), is a reference only to the Occurrence that the Action plan is being created for. They share a common field called "OccurrenceID" (primary key in OccurrenceTBL). I want to populate the first form (frmActionPlan) with only the OccurrenceID field (selected from a list of occurrences)and then have a separate window (frmOccurenceDetail), remain open and display the detail of the OccurrenceTBL based on the OccurrenceID in (frmActionPlan). The data in the (frmOccurrence) form should change appropriately when the record is changed on frmActionPlan using the navigation buttons.
Scenero:
Open frmActionPlan and click cmdSelectOccur,
which opens frmselectOccur, then
select Occurrence from DataGrid, which reopens frmActionPlan, and creates new ActionPlan.
Datagrid populates "OccurrenceID" field in new ActionPlan and Opens frmOccurrenceDetail
frmOccurrenceDetail displays the detail of the Occurrence based on the OccurrenceID in frmActionPlan.
I have code for most of the actions here, but it is really long. I will post if you want it. All I need to know is how to make the content of frmOccurrenceDetail reflect the proper information based on whatever OccurrenceID field is in the frmActionPlan.
I am a new programmer and I know this is probably a stupid question, sorry.