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!

access Query Question

Status
Not open for further replies.

cnewtomass

Programmer
Jul 26, 2005
1
US
I am trying to calculate the # of referrals in the Number of Referrals textbox on the Enter/Edit Providers form. As someone views the different providers, this field will display the current # of referrals for each provider.

The provider # is the primary key of the providers table and is the value of the ReferredBy field of Enter/Edit Patients. Any assistance will be appreciated. Thanks! -
 
You haven't provided near enough information. Calculating sums/totals generally require knowledge regarding some table structures. You haven't provided any.

Please try again.

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]
 
You could develop a query that will count the referrals. I am assuming that you have a provider index code for which to count. Then create a macro that runs when the form opens it runs the referral count query and displays the number of referrals in the appropriate box.
 
You may consider the DCount function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top