S
SAC
I'm trying to click a button on a form and open another form. Based on the
criteria, the 2nd form should show 1 of 2 records.
Right now I have:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmTWDHPH"
stLinkCriteria = "[PHORD]=" & Forms![frmLookup]![frmLookup
subform]![TXTXTPO]
DoCmd.OpenForm stDocName, , , stLinkCriteria
This should show 2 records, but when I run this I get the error: "The
OpenForm action was cancelled."
What can I do to get this to run?
Thanks.
criteria, the 2nd form should show 1 of 2 records.
Right now I have:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmTWDHPH"
stLinkCriteria = "[PHORD]=" & Forms![frmLookup]![frmLookup
subform]![TXTXTPO]
DoCmd.OpenForm stDocName, , , stLinkCriteria
This should show 2 records, but when I run this I get the error: "The
OpenForm action was cancelled."
What can I do to get this to run?
Thanks.