Results 1 to 3 of 3
  1. #1
    Zinger is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Oct 2015
    Posts
    7

    Concatenation

    Is there any way in MS ACCESS to join string & integer in field which has data type: number? And later on to use those numbers for calculation.

    I want to store in field something like this:

    5,6 - 9

    in excel i should do this =12 &" - "&11



    Thanks in advance

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Eval() function can take a string that is a math expression and evaluate it. So:

    Eval("1" & "+" & 4) = 5

    The , is decimal? So yes, if "5,6 - 9" is stored in field:

    Eval([fieldname]) = -3.4
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Zinger is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Oct 2015
    Posts
    7
    Hi June7! First of all i want to thank for your suggest... But what i really want to write there, it is "5,6 to 9", where " to " or " - " has string. And get those number and place to another field through some statements.

    Thanks

Please reply to this thread with any new information or opinions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums