help me out with this access thing

Discussion in 'Web Design & Coding' started by technokid88, Nov 20, 2006.

  1. technokid88

    technokid88 Part of a System Folding Team

    Messages:
    741
    Location:
    In a world without windows
    Write a Visual Basic function to determine if the numbers below are odd or even. got like 6 nubmers and want to find out which ones are odd and even in a function, can some one help me write one real quick .. ThanksThe functionshould return the words

    'Odd' or 'Even'.
    .
     
    Aprox likes this.
  2. SPeedY_B

    SPeedY_B I may actually be insane.

    Messages:
    15,800
    Location:
    Midlands, England
    Code:
    Public Function IsOdd(ByVal lngNumber as Long) as Boolean
        IsOdd = NOT (lngNumber AND &H01)
    End Function
    Google FTW :D
     
    technokid88 likes this.
  3. technokid88

    technokid88 Part of a System Folding Team

    Messages:
    741
    Location:
    In a world without windows
    thanks, for the help