×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Counting records in Access that have a specific id number related to

Counting records in Access that have a specific id number related to

Counting records in Access that have a specific id number related to

(OP)
I have a form that users utilize to write a referral.  A referral connects a client with a company.  I am trying to get a box that counts the number of referrals a specific client has had.  The goal is to create a box that displays the number of previous referrals a client has had on the form.

RE: Counting records in Access that have a specific id number related to

You need a tble of clients with an integer field that is incremented each time a client gets a referral.
When the form opens populate the box with the current number from the cient table.
then update the fild and the box every time a new referral is created.

RE: Counting records in Access that have a specific id number related to

LeonAtRC:
this will create a non nomelised database

christophercubitt:

Do you have a table where you store referral information
if yes create a textbox that the control source is

CODE

=dcount("*","referraltable","client=" & me.client)

change fields names to your fields names

if no you better create a referraltable and do as above  

RE: Counting records in Access that have a specific id number related to

(OP)
I have a table that logs all the referrals.  I tried entering the text box with the suggested control source but wound up with "#Name?" in the text box.  I would use "ClientID" to count the number of referrals, and the referrals are recorded on a table called "Referrals".

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close