I have a 2nd form which opens from an onclick event on form 1. But when form 2 opens it opens to create a new record instead of showing all the records asociated to the key field, "EstN". EstN is a text field. Here's my code.
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmOutpurchase"
DoCmd.OpenForm stDocName, acNormal, , "EstN = " & Me.txtRealEstN, acFormEdit