I have a MAIN FORM that has field [MR#].
Would like to open a new form VISITS that is a data entry form. Upon opening the VISITS form, I would like the [MR#] in the VISITS form to pre-populate from the MAIN FORM's [MR#].
I'm VERY VERY new to the "coding" side of things in Access.
Under the property sheet on ON LOAD, I put in this code:
Private Sub Form_Load()
If Not IsNull(Me.OpenArgs) Then
DoCmd.GoToRecord , , acNewRec
Me.[MR#] = Me.OpenArgs
End If
End Sub
Not working!
Any help is much appreciated!
Michele
Would like to open a new form VISITS that is a data entry form. Upon opening the VISITS form, I would like the [MR#] in the VISITS form to pre-populate from the MAIN FORM's [MR#].
I'm VERY VERY new to the "coding" side of things in Access.
Under the property sheet on ON LOAD, I put in this code:
Private Sub Form_Load()
If Not IsNull(Me.OpenArgs) Then
DoCmd.GoToRecord , , acNewRec
Me.[MR#] = Me.OpenArgs
End If
End Sub
Not working!
Any help is much appreciated!
Michele