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

Criteria in the DSUM function

Status
Not open for further replies.

thembela

Technical User
Jun 4, 2005
29
ZA
I got the follwoing DSUM FUCNTIOn: DSUM("APIMvmnt","HealthProduction","
[broker]=1000012946 ")

I wouldn't like to specify the broker number in the criteria part because it
only returns the values associated with this broker (1000012946),This formula
doesn't cater for other broker numbers i.e 10000003458,10000087977,
100000289722.How can i make it to cater for other brokers without specifying
a broker value in my criteria just like i've done.

Yo help would be greatly appreciated



 
Hi
If you wish to sum everything, skip the criteria altogether. If you wish to use different broker numbers, write:
Code:
Function MyDSUM(BrokerNo)
DSUM("APIMvmnt","HealthProduction","[broker]=" & BrokerNo & ")"
End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top