Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Getting highest level output

Discussion in 'Information Technology' started by MJc215, Nov 18, 2005.

  1. MJc215

    MJc215
    Expand Collapse
    Guest

    Trying to output a string (A,B, or C) to a label on a report. In the
    query that the report is being produced from I have a member name field
    and LetterCode field that is the focus of obtaining my A, B, C output.
    Lets say I have 3 records with the same member name but each has a
    different LetterCode. I want to output to the label the highest
    LetterCode(C being the highest) to the label on the report. The way i
    have it set up now is with an IIf but it automatically takes the first
    LetterCode value of the member name. How can i have output the members
    highest letter code value??? Thanks for your responses.

    Mike
     
  2. Loading...


  3. Ken Snell [MVP]

    Ken Snell [MVP]
    Expand Collapse
    Guest

    How are you doing this --- in code? in DLookup function? in DMax function?

    DMax function will probably give you the result that you seek.

    --

    Ken Snell
    <MS ACCESS MVP>


    "MJc215" <buttauup1@gmail.com> wrote in message
    news:1132258945.284859.221640@g47g2000cwa.googlegroups.com...
    > Trying to output a string (A,B, or C) to a label on a report. In the
    > query that the report is being produced from I have a member name field
    > and LetterCode field that is the focus of obtaining my A, B, C output.
    > Lets say I have 3 records with the same member name but each has a
    > different LetterCode. I want to output to the label the highest
    > LetterCode(C being the highest) to the label on the report. The way i
    > have it set up now is with an IIf but it automatically takes the first
    > LetterCode value of the member name. How can i have output the members
    > highest letter code value??? Thanks for your responses.
    >
    > Mike
    >
     

Share This Page