Hi,
I have a big and urgent problem.
I have a form with a subform. The form don't have a recordsource, only buttons. The subform is a datasheet.
I want to open de form with a stLinkCriteria, but the stLinkCriteria is not for the form, but for the subform.
Example:
stDocName = "formTest"
stLinkCriteria = "[forms]![formTest]![formTestSub]!
I have a big and urgent problem.
I have a form with a subform. The form don't have a recordsource, only buttons. The subform is a datasheet.
I want to open de form with a stLinkCriteria, but the stLinkCriteria is not for the form, but for the subform.
Example:
stDocName = "formTest"
stLinkCriteria = "[forms]![formTest]![formTestSub]!
Code:
= 1"
DoCmd.openForm stDocName, , , stLinkCriteria
This is not working.
Can someone help me.
Thanks