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

    Subdata Sheet AutoNumber

    Hi ! New to Access here. I have 2 questions, it would be much appreciated if someone can help me.

    1. How to make AutoNumber in Sub Categories table based on Category Auto Number

    Eg: Table [Categories] : TST-1000 Telephone & Internet
    Table [Sub Categories] : TST-1001 TP-0001 Group
    Table [Sub Categories] : TST-1002 TP-0002 Group

    Eg: Table [Categories] : TST-3000 Selling & Distribution
    Table [Sub Categories] : TST-3001 Marketing
    Table [Sub Categories] : TST-3002 Packaging

    2. How to make Specific AutoNumber (Not related to attachment)

    Eg: Income : INC-1000


    Expense : EXP-1000
    Attached Files Attached Files

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,424
    just have 2 fields, an autonumber and category, you can concatenate the two when required

    specificNum:[category] & "-" & [autonumber]

    if you want the same number part for each category. google 'dmax+1', but this will come with issues in a multi user environment.


    Note in your table design, Description is a reserved word and should not be used as a field name. similarly field names should not have spaces or use none alpha numeric characters. If you do, they can cause problems.

    Also advise you for PK/FK use autonumber/long field types. Up to you, but using text will create larger indexes which will affect performance once your tables get to any sort of size.

  3. #3
    Nushan is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2019
    Posts
    7
    Thank you Ajax,

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

Similar Threads

  1. Trying to link subdata to data
    By databasewolfy in forum Access
    Replies: 5
    Last Post: 08-13-2019, 09:27 AM
  2. Replies: 1
    Last Post: 05-19-2017, 07:23 AM
  3. import excel sheet causes autonumber beyond records
    By BCJourney in forum Import/Export Data
    Replies: 11
    Last Post: 09-25-2013, 06:02 AM
  4. Subdata report
    By jenncivello in forum Reports
    Replies: 9
    Last Post: 11-30-2012, 12:45 PM
  5. Subdata Sheet
    By jenncivello in forum Reports
    Replies: 1
    Last Post: 10-04-2012, 01:11 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