I have a form that works perfectly as a stand alone form. I filter records and then select the one I want to open in a new form. The code is:
Private Sub Option64_Click()
Dim sWHERE As String
'Comment out or delete the line that does not apply --
''If the ID is a number, built the WHERE clause like this:
sWHERE = "[CustomerID] = " & Me.CustomerID
'Open the form
DoCmd.OpenForm "CustomerF", acNormal, , sWHERE
End Sub
When I put this form into another form as a subform it no longer works.
I think I have to change the sWhere but not sure to what??? The form is frmMain and the subform is frmCustomer.
Thank you in advance for any help.