Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DSum Control

Status
Not open for further replies.

Brogrim

Technical User
Jul 28, 2000
184
IE
I have a yes no field called Advocacy in a table called tblMemberServices, there is also a field in the table called ROCID.

I want to be able to count the advocay field that is true.
What is wrong with the following code.

=Abs(DSum("[Advocacy]","tblMemberServices","[ROCID] =" & Form!frmReports!ROCID))

Thnsk in advance
 
Hi Remou

Thanks again for the help

ROCID is Numeric

Does numeric mean it is enclosed by quotes







 
No, text is quotes. I think you need to say a little more, such as in what way is it not working?
 
I am getting a Name error on the control when i preview it, what other info are you looking for.



 
That's fine, it could have been #error. I think that you are missing an 's' Forms, not Form:
Forms!frmReports!ROCID
 
Working perfect, could you direct me some where to learn synthax.

Thanks alot for the help
 
There are a few suggestions in this post:
DoCmd ?
thread702-1146655
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top