help me out with this access thing

technokid88

Part of a System
Joined
15 Feb 2006
Messages
741
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'.
.
 
Code:
Public Function IsOdd(ByVal lngNumber as Long) as Boolean
    IsOdd = NOT (lngNumber AND &H01)
End Function

Google FTW 😀
 

Members online

No members online now.

Forum statistics

Threads
62,021
Messages
673,242
Members
5,641
Latest member
cpomd
Back
Top