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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DSum problem

Status
Not open for further replies.

Brogrim

Technical User
Jul 28, 2000
184
IE
Hi all

I am trying to count the number of supports that are ticked Yes in the MemPOMInt Table. The criteria is the MemPOMID control that is on the form.

=Abs(DSum("[Support]","tblmempomint","[mempomid] = Me!MemPOMID"))

Thanks in advance
 
Perhaps:
[tt]=Abs(DSum("[Support]","tblmempomint","[mempomid] =" & Me!MemPOMID))[/tt]
Assuming that MemPOMID is numeric. You need some single quotes, if it is text:
[tt]='" & Me!MemPOMID & "'"[/tt]
 
Tried that but I had my reference wrong on the form syntax


=Abs(DSum("[Support]","tblmempomint","[mempomid] =" & Form!frmMemPOM!MemPOMID))

Thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top