Hi
I have an 'add new' button on a form that opens a defferent form and passes through the ID value using the openargs, here is the code:
the form that opens has the following on the on load event:
I get the runtime error 2135, this property is read-only and can't be set.
How do I make the ID field writable?
Thanks
I have an 'add new' button on a form that opens a defferent form and passes through the ID value using the openargs, here is the code:
Code:
Dim stDocName As String
Dim strOpenArgs As String
stDocName = "frmRIAProcessAdd"
strOpenArgs = Me.ID
DoCmd.OpenForm stDocName, , , , , , strOpenArgs
DoCmd.Close acForm, "frmRIASelectApplication", acSaveYes
the form that opens has the following on the on load event:
Code:
OpenArgs = Me.ID
I get the runtime error 2135, this property is read-only and can't be set.
How do I make the ID field writable?
Thanks