Consulting

Results 1 to 3 of 3

Thread: max at the same time of 3 fields

  1. #1
    VBAX Regular
    Joined
    Nov 2007
    Posts
    8
    Location

    max at the same time of 3 fields

    Hi people,

    I have 3 fields in one table and i would like to have at the some time the max of this fields. Can you help me?
    Regards

    insea

  2. #2
    VBAX Master stanl's Avatar
    Joined
    Jan 2005
    Posts
    1,141
    Location
    just a guess, but are you looking at something like

    [VBA]
    SELECT MAX(f1)+MAX(f2)+MAX(f3) as MaxSum FROM [sometable]...
    [/VBA]

    where I think you need to account for Null values etc....

  3. #3
    VBAX Regular
    Joined
    Nov 2007
    Posts
    8
    Location
    That's exactly what i need.
    Thanks a lot.
    Regards

    insea

Posting Permissions

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