Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2003
    Location
    UK
    Posts
    27

    Unanswered: validating a variable

    how can i check to see if a variable is a number?

    isnumber works in excel's VBA, but not it would seem in access

    e.g

    if isnumber(myVar) then
    msgbox "your variable is a number"
    else
    msgbox "your variable is not a number"
    end if

    anyone know?
    phil

  2. #2
    Join Date
    Jul 2003
    Location
    Michigan
    Posts
    1,941
    Use Isnumeric instead of Isnumber
    Inspiration Through Fermentation

  3. #3
    Join Date
    Jan 2003
    Location
    UK
    Posts
    27

    Wink Cheers m8 worked first time

    ...

Posting Permissions

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