I think the error is because there is a space in after update => "_AfterU pdate"
Not knowing what you want to happen makes it hard to get the code right, but try this:
Code:
Private Sub cmdCloseForm_Click()
Dim response As String
If Me.Dirty Then
response = MsgBox("You have made unsaved changes to the current project." & vbNewLine & vbNewLine & "Do you wish to save your changes before closing?", vbYesNoCancel, "Confirm close")
'handle response
If response = vbYes Then
'save data
Me.Dirty = False
MsgBox "Changes successfully submitted."
DoCmd.OpenForm ("frmModifyProjects")
'hide details form
Forms(Me.Name).Visible = False
Forms("frmModifyProjects").cboSelectProject = Me.txtFixID
Call Forms("frmModifyProjects").cboSelectProject_AfterUpdate
'close details form
DoCmd.Close acForm, Me.Name
ElseIf response = vbNo Then
Me.Undo
MsgBox "Your changes were not saved."
DoCmd.Close
' DoCmd.OpenForm ("frmModifyProjects")
Else
'leave details form open - no save
' Me.Undo
' Me.Dirty = False
End If
Else
'not dirty so close
' DoCmd.OpenForm ("frmModifyProjects")
DoCmd.Close acForm, Me.Name
End If
End Sub
The lines in BLUE are optional. Un-comment if you want the commands to be effective.