I am trying to syncronize two forms.
I have a button on form1 (frm_pricingprofile) which opens form2. I put the following code on form2.
Private Sub Form_Open(Cancel As Integer)
On Error Resume Next
Dim rs As Recordset
Set rs = Me.RecordsetClone
rs.FindFirst "approvalnumber =" & Forms!frm_pricingprofile!Text169
Me.Bookmark = rs.Bookmark
Set rs = Nothing
End Sub
I am getting an error which states "Method or data member not found" and the text "Text169" which appears in my code is highlighted.
Text169 = [Approval Number]
Where am I going wrong?
I have a button on form1 (frm_pricingprofile) which opens form2. I put the following code on form2.
Private Sub Form_Open(Cancel As Integer)
On Error Resume Next
Dim rs As Recordset
Set rs = Me.RecordsetClone
rs.FindFirst "approvalnumber =" & Forms!frm_pricingprofile!Text169
Me.Bookmark = rs.Bookmark
Set rs = Nothing
End Sub
I am getting an error which states "Method or data member not found" and the text "Text169" which appears in my code is highlighted.
Text169 = [Approval Number]
Where am I going wrong?