Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    May 2002
    Location
    Jerusalem, Israel
    Posts
    187
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Calculating Averages (2000)

    Hi All. Perhaps you can help me. I wouild like to create a percentage calculation. I tried this:

    I want to know the number of Sales by Illinois Salesmen that were sent via FedEx as a percentage of all Sales by Illinois Salesmen.

    1) I created a query to count all IL Salesmen which have had Sales sent via FedEx ie: Expr1: Count(*) as an Expression
    2) I created a query to count all Sales by IL inventors ie: Expr1: Count(*) as an Expression
    3) I created a form with a text box and entered the following into the control source and changed the format to "Percentage".

    =[qry_Count Sales by IL Salesmen_SentFedEx]![Expr1]/[qry_Count Sales by IL Salesmen]![Expr1]

    The result is a #Name? error. What did I do wrong?

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Calculating Averages (2000)

    You cannot refer to a query this way. You could use DLookup:

    =DLookup("Expr1","qry_Count Sales by IL Salesmen_SentFedEx")/DLookup("Expr1","qry_Count Sales by IL Salesmen")

  3. #3
    2 Star Lounger
    Join Date
    May 2002
    Location
    Jerusalem, Israel
    Posts
    187
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Calculating Averages (2000)

    Thanks Hans. I'll give it a go.

    Much appreciated.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •