Welcome to SPN

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

Sign Up Now!
  1. Monthly (Recurring) Target: $300 :: Achieved: $95
      Become a Supporter    ::   Make a Contribution   

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
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page