"The OpenForm action was closed"
when I use the following code behind a command button:
CODE
stDocName = "frmPhoneLog"
stLinkCriteria = "tblContact.ContactLN Like Chr(34)*Chr(34) &" & _
"[Forms]![frmMainMenu].[Caller] & Chr(34)*Chr(34)" & _
"AND tblContact.ResolvedDate Is Null"
DoCmd.OpenForm stDocName, , , stLinkCriteria
stLinkCriteria = "tblContact.ContactLN Like Chr(34)*Chr(34) &" & _
"[Forms]![frmMainMenu].[Caller] & Chr(34)*Chr(34)" & _
"AND tblContact.ResolvedDate Is Null"
DoCmd.OpenForm stDocName, , , stLinkCriteria
The filter works if I use "=" instead of "Like Chr(34) . . ." but then I can't use partial names.
Any suggestions?