Results 1 to 5 of 5
  1. #1
    JNITS is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    2

    Jobstring

    I have 3 columns:
    Jobtype (examples would be FA, FR, SP)


    State (example AL, CA, FL)
    Job# (1001, 1002 etc)

    The 4th column is:
    Jobstring

    I want Jobstring to be the combination of data entered in Jobtype, State, Job#
    so the Jobstring would look like this (in the perfect Access world)
    FACA-1001

    I can't figure out how to do this.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    This can be calculated in table Calculated type field or query or textbox. Saving to a normal field in table would require code (macro or VBA).

    Use concatenation.

    [Jobtype] & [State] & "-" [Job#]

    Advise not to use space nor punctuation/special characters (underscore only exception) in naming convention. Better would be JobNum or Job_Num.
    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
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,830
    missed an ampersand

    [Jobtype] & [State] & "-" & [Job#]

  4. #4
    JNITS is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    2
    It worked. Thank you very much

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    Oh, rats! Thanks for the catch, Ajax.
    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.

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