Hello
I'm trying to get a value into a text box within the detail section of a report using DCount.
ProviderName is the name of another control (it's text box, control source is providerName, which is text) on a report.
I know there's data in the underlying query.
also doesn't work.
Is there a trick I'm missing to referring to the ProviderName control. I keep getting Error in the control !!
I'm trying to get a value into a text box within the detail section of a report using DCount.
ProviderName is the name of another control (it's text box, control source is providerName, which is text) on a report.
Code:
=DCount("CampaignID","qryDistinctCampaigns","Name='" & [ProviderName] & "'")
I know there's data in the underlying query.
Code:
=DCount("*","qryDistinctCampaigns","Name='" & [ProviderName] & "'")
also doesn't work.
Is there a trick I'm missing to referring to the ProviderName control. I keep getting Error in the control !!