This is my last problem. What's the vba code to have a command buttom open a report but with the filter being the one currently on the form that the command button is on.
This code below is what I would normally use but I need to set the variable stLinkCriteria equal to the filter for the form.
DoCmd.OpenReport stDocName, , , stLinkCriteria
This code below is what I would normally use but I need to set the variable stLinkCriteria equal to the filter for the form.
DoCmd.OpenReport stDocName, , , stLinkCriteria