Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    Feb 2002
    Location
    Reading, Berkshire, England
    Posts
    199
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Text Numbers as Numbers (2 K)

    Trying to convert numbers that have the data type text to numbers. Problems! Any help on offer please with perhaps a VBA Code listing. This is a calculated field in a query based on a text field. Value function throws up an error. <img src=/S/igiveup.gif border=0 alt=igiveup width=31 height=23>

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Text Numbers as Numbers (2 K)

    Try using Val instead of Value, or if you want to convert to a specific number type, use one of the conversion functions CInt, CLng, CSng, CDbl etc. (convert to Integer, Long Integer, Single and Double, respectively).

  3. #3
    2 Star Lounger
    Join Date
    Feb 2002
    Location
    Reading, Berkshire, England
    Posts
    199
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Re: Text Numbers as Numbers (2 K)

    Val and CLng solved the problem, many thanks Hans and the seasons greetings to you.

Posting Permissions

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