Can someone please help.
I've done Open Args several times and I'm in the process of creating a Accident Database. However I have a page that just doesn't want to work.
From MainMenu > FrmTypeofIncident > FrmReportingAccident > FormDescriptionofIncident all okay then I click continue
Private Sub Closebtn_Click()
DoCmd.OpenForm "FrmDescriptionofInjury", , , "[IncidentDescriptionID] = " & Me.IncidentDescriptionID, , , Me!IncidentDescriptionID
End Sub
And FrmDscriptionifInjury with
Private Sub Form_Open(Cancel As Integer)
If Me.OpenArgs <> "" Then
Me![IncidentDescriptionID].DefaultValue = "" & Me.OpenArgs & ""
End If
End Sub
Should open a new record, but Im getting the following error:
Run-time Error 438
Object doesn't support this property or method
Me![IncidentDescriptionID].DefaultValue = "" & Me.OpenArgs & ""
But I have done this dozens of times and don't see what is wrong.
Can someone help me out please?