G
Guest
I want to ue a command button to open a form to a record defined by 2
criteria. But I can't seem to figure out how to write the code for both
criteria. Each of the following work individually, but not together as I have
written it:
stLinkCriteria = "[nRstAtt]=" & Me![List5]
stLinkCriteria2 = "[nRstCls]=" & Me![List3]
DoCmd.OpenForm stDocName, , , stLinkCriteria & stLinkCriteria2
So obviously my ampersand in the last line isn't getting it done. ANy help
would be appreciated. Thanks!
criteria. But I can't seem to figure out how to write the code for both
criteria. Each of the following work individually, but not together as I have
written it:
stLinkCriteria = "[nRstAtt]=" & Me![List5]
stLinkCriteria2 = "[nRstCls]=" & Me![List3]
DoCmd.OpenForm stDocName, , , stLinkCriteria & stLinkCriteria2
So obviously my ampersand in the last line isn't getting it done. ANy help
would be appreciated. Thanks!