Try this:
In form "FrmTypeofIncident", the name of the combo box is "TypeofIncident" (NOT TypeofIncidentID).
In the code, you have
Code:
Private Sub Closebtn_Click()
DoCmd.OpenForm "FrmReportingAccident", , , "[TypeofIncidentID] = " & Me.[TypeofIncidentID]
DoCmd.Close acForm, Me.Name, acSaveNo
End Sub
plus you do not set "OpenArgs"
The code would be
Code:
Private Sub Closebtn_Click()
DoCmd.OpenForm "FrmReportingAccident", , , "[TypeofIncidentID] = " & Me.[TypeofIncident], , , Me.[TypeofIncident]
DoCmd.Close acForm, Me.Name
End Sub
Next, I would make form "FrmTypeofIncident" an unbound form (delete the Record source value). The combo box does not need to be on a bound form since all you are doing is getting a value (the PK) from a combo box.
You will also have to clear the combo box "Control Source".
I don't understand why you are setting the default value of "[TypeofIncidentID]" in table tblAccidents (but I don't really need to understand ).
Also, on form "FrmTypeofIncident", I would change the names of the two buttons.
The button CLOSE I would rename from "Private Sub Command6_Click()" to "Private Sub Closebtn_Click()" and the button CONTINUE I would rename from "Private Sub Closebtn_Click()" to "Private Sub Continuebtn_Click()"