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

DSUM combinning 2

Status
Not open for further replies.

Hillbillie

IS-IT--Management
Jun 28, 2005
23
US
I need some help.

These 2 work.

=DSum("[Student Scholarships Received]![dollaramount] ","[Student Scholarships Received]"," [socialsecuritynumber]=[forms]![Student Scholarships Received]![SocialSecurityNumber]")


=DSum("[Student Scholarships Received]![dollaramount] ","[Student Scholarships Received]","[name of scholarship] like '*plus*'")

I would like to combine them into 1 dsum

Thanks,

Larry
 
Try:
=DSum("[dollaramount]","[Student Scholarships Received]", "[socialsecuritynumber] = [forms]![Student Scholarships Received]![SocialSecurityNumber] OR [name of scholarship] like '*plus*'")


Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Thanks dhookom,

It works great. I use your examples except with the and instead of or.

DSum("[dollaramount]", "[Student Scholarships Received]", "[socialsecuritynumber] = [forms]![Student Scholarships Received]![SocialSecurityNumber] and [name of scholarship] like '*plus*'")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top