I
Ivan
I have a report where I use Dcount in the following formula:
=DCount("[qryTrained]![PersonID]","qryTrained","[TrainingBU]=[Reports]![SSby
TrainingUnit]![TrainingBU]")
it works fine. I would like to copy the textbox with the formula to other
reports but the references don't work. I know the Me! operator can be used
in VBA but I can't get it to work in the expressionbuilder. I'd like to use
something like this, that can be pasted onto any report:
=DCount("[qryTrainedBB]![PersonID]","qryTrainedBB","[Me]![TrainingBU]")
Is this possible? What's the correct syntax?
Thanks,
Ivan
=DCount("[qryTrained]![PersonID]","qryTrained","[TrainingBU]=[Reports]![SSby
TrainingUnit]![TrainingBU]")
it works fine. I would like to copy the textbox with the formula to other
reports but the references don't work. I know the Me! operator can be used
in VBA but I can't get it to work in the expressionbuilder. I'd like to use
something like this, that can be pasted onto any report:
=DCount("[qryTrainedBB]![PersonID]","qryTrainedBB","[Me]![TrainingBU]")
Is this possible? What's the correct syntax?
Thanks,
Ivan