Results 1 to 7 of 7
  1. #1
    IanWebb1982 is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2019
    Posts
    3

    Job Number


    Good afternoon all

    I am creating my first Access database in over 20 years and I need a 'Job Number' field which is auto generated and the record is saved. This would be a combination of the Primary Key, which is an auto number, and a 3 character text field which is already in database.

    I cannot find a way to do this, is it even possible?

    Thanks in advance

  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi Ian

    Yes it can be done but why do you need it?

  3. #3
    IanWebb1982 is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2019
    Posts
    3
    Hi Mike

    Thanks for replying so quickly.

    Currently we run a 'Job Log' on an Excel spreadsheet but there has become a greater need for reporting on this which I know Access will be better for. We give each job a unique number using three letters from their name, for example ABC Electrical being the first job in the database would create a job number 'ABC1', the next job for DEF Electrical would be 'DEF2'. This makes it easier for us to identify the job internally

    Thanks

  4. #4
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi Ian

    Rather than storing the Job Number you can display it on your Data Input Form and also on any Report that you generate by using the following in an Unbound Textbox

    =[NameofPrimaryKey]&""&[NameField]

  5. #5
    IanWebb1982 is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2019
    Posts
    3
    Brilliant - thanks Mike

    I think I'm almost there, but how would I pull the Customer Reference from another table in the unbound textbox?

    Thanks

  6. #6
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi Ian

    You would normally do this in the design View of your Form(s).

    Do you have a Main Form and a SubForm for your Data Input?

  7. #7
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Before you use an autonumber as part of a 'Job Number' field, see these:

    AutoNumber
    ----------------
    Purpose: Use an AutoNumber field to provide a unique value that serves no other purpose than to make each record unique. The most common use for an AutoNumber field is as a primary key.



    Autonumbers--What they are NOT and What They Are

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

Similar Threads

  1. Replies: 10
    Last Post: 04-01-2018, 07:45 AM
  2. Replies: 2
    Last Post: 01-05-2018, 04:35 PM
  3. Replies: 2
    Last Post: 10-12-2016, 05:48 PM
  4. Replies: 5
    Last Post: 11-30-2014, 12:46 PM
  5. Replies: 6
    Last Post: 07-25-2011, 01:54 PM

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