G
Guest
With the Code below I'm trying to get a newly entered pt on the frmNewPt form
to be loaded on my form frmPtDemographicNew when the cboNewPtLoad button is
clicked. The frmPtDemographicNew form loads but doesn't go to the newly added
pt.
Any help would be greatly appreciated. Thanks, Rob
Private Sub cboNewPtLoad_Click()
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.Save
stDocName = "frmPtDemographicNew"
stLinkCriteria = "[MRN]=" & Me![MRN]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub
to be loaded on my form frmPtDemographicNew when the cboNewPtLoad button is
clicked. The frmPtDemographicNew form loads but doesn't go to the newly added
pt.
Any help would be greatly appreciated. Thanks, Rob
Private Sub cboNewPtLoad_Click()
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.Save
stDocName = "frmPtDemographicNew"
stLinkCriteria = "[MRN]=" & Me![MRN]
DoCmd.OpenForm stDocName, , , stLinkCriteria
End Sub