Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    johnpolg is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2022
    Posts
    11

    development of report number

    hello,

    this is my first time posting. forgive me if the English is bad or i am not explaining myself well.

    So i am trying to set up access to develop and store report/document numbers for multiply user to ensure no duplicates are used. (see screen shot from form below).

    when a user fills out the form. it build an a document identifier, there the series number and number which are important.

    once you select the series number. the the number below should count how many times for example XXXX0783-ZZZZ-10-XXXX-DR-C-AC200 has been enter and add the count to the 200.

    for example: if XXXX0783-ZZZZ-10-XXXX-DR-C-AC200 appears 10 times in the table the next document number should be XXXX0783-ZZZZ-10-XXXX-DR-C-AC211 this is the document number.

    is this possible? i have done something like this in excel but the information table become to large.

    or is there a way if user enters the number it could state the number is already taken?




  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    johnpolg,

    Your post was awaiting approval which has now been done. If English is not your mother tongue, you can create a post in your language and then use google translate to get English and post that in the forum.

    Welcome.

  3. #3
    CarlettoFed is online now Competent Performer
    Windows 7 64bit Access 2013 32bit
    Join Date
    Dec 2019
    Posts
    257
    Of course it can be done but you should attach the Access file to make it easier to help you.

  4. #4
    johnpolg is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2022
    Posts
    11
    i have attached now
    Attached Files Attached Files

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Office 365
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Where does the 200 and/or 211 in your post #1 come from? Your query doesn't show such a number in your query.


    Project Number: Originator: Volume Location Type Code Role code Classification Document Identifier
    ;l





    ;l------
    test test 10 xxxxx DR A AC test-test-10-xxxxx-DR-A-AC
    MCT0783 ZZZ 10 XXXX RD S BR MCT0783-ZZZ-10-XXXX-RD-S-BR
    MCT0783 RPS 00 XXXX DR S BR MCT0783-RPS-00-XXXX-DR-S-BR
    MCT0783 RPS 00 XXXX DR S BR MCT0783-RPS-00-XXXX-DR-S-BR

  6. #6
    johnpolg is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2022
    Posts
    11
    hi, thanks for the quick reply. i didn't add the number to the query.

    as i need the combined number in the 00 record table.

    i was trying to you select the series number (100,200,300) this gets added to the number of time the document identifier is in the 00 record table, this would make the document number.

    the form should then add all this info to the 00 record table.
    Attached Thumbnails Attached Thumbnails Capture_10.JPG  

  7. #7
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    i was trying to you select the series number (100,200,300) this gets added to the number of time the document identifier is in the 00 record table, this would make the document number.
    If user is entering a new record, how does user know what series number to select?

  8. #8
    johnpolg is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2022
    Posts
    11
    this is assigned to each team, I.e road team bridge team environmental team. the space between the series is the expect number of drawing/report are to produce.

  9. #9
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,413
    Quote Originally Posted by johnpolg View Post
    this is assigned to each team, I.e road team bridge team environmental team. the space between the series is the expect number of drawing/report are to produce.
    Does this mean that code can automatically enter series when Discipline is entered? If so, series could just be a field in the Discipline table.

  10. #10
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    To me, this is a document control db, where the successive document identifier that is created in a series gets the next number in that series. IMO, you do this on the final stage, assuming there are stages. In other words, if you allow partial saves, you don't save the document identifier data until all required info is provided. If stages are not applicable, you create the identifier when the record is committed (i.e during the form BeforeUpdate event) so that when the document record is created, that's when you reveal the document identifier. IMO this is the required methodology in a multi user document/record db.

    In any event, the next identifier number is the DMax (or Max) of the number field WHERE the other parts match the rest of the document identifier parts. So the document identifier should not be a single field, but a compilation of however many fields would make up the document identifier string.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  11. #11
    johnpolg is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2022
    Posts
    11
    no, there could be multiple series within any discipline depending on the porject.

  12. #12
    johnpolg is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2022
    Posts
    11
    Micron
    how, do i do the above. i am at a beginner to intermediate level in MS access. I can see how this would work, Dmax get added to the series number and concatenated with document identifier. how, do i add the concatenated values to the record from the user from. it doesnt seem to be adding to the table.

  13. #13
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    Using the format from an ISO document and record management db I used to work with as an example, each field would contain an element (portion) of the document identifier, such as

    DEPT | ELEMENT | DOC_NO (or using lookup table values for 1st 2 fields)
    MACH | 4 | 001

    indicating that is document number 001 under element 4 for a particular department. If every department could have a document at that level, another might look like

    ELEC | 4 | 001

    assuming the pattern allows duplicate numbers (e.g. 001) under different elements and/or departments. In that case DMax returns the greatest doc number for any given combination of DEPT | ELEMENT and adds one. Research DMax with criteria to see how you'd find only the last number that pertains to the combination of department and element.

    If the doc number is to be incremented irrespective of any of the other parts, it can simply be the DMax of the document numbers, +1. However, that produces what looks like gaps in a department's document numbering and tends to raise questions about what looks like missing documents.

    HTH

    EDIT - if not clear, each potion of the document identifier is in a separate field. You string together the identifier portions in forms and reports as required, along with separators if needed (dashes, periods and the like).
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  14. #14
    johnpolg is offline Novice
    Windows 10 Office 365
    Join Date
    Mar 2022
    Posts
    11
    Hi Micron, thanks again.

    how do i a get the information concatenated in the form to the record table?

    than i can use Dmax.
    Attached Thumbnails Attached Thumbnails Capture.JPG   Capture_02.JPG  

  15. #15
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,803
    I see 7 or 8 parts there, so 7 (or 8) fields. Each field (textbox) must be on the form, hidden if you don't want to see the individual parts. Your document number textbox control source would then be = fld1 & "-" & fld2 & "-" & fld3 & "-" and so on, where fld means the name of the field for that part. You could also string them together with a function if the expression becomes too long for you.

    Something tells me you only have one field for the doc number, which will never work as you can't generate numbers using DMax on text fields. That method also severely limits your ability to query and filter records for documents that belong to a dept/group/whatever. Not hard to fix though - you'd add the necessary fields and run a query to parse the document id into its parts. If those parts are like MTC0783 and ZZZ then it would not be properly normalized. Whatever MTC0783 is probably should be in its own table and you'd use the PK for whatever that piece is, same for the other parts. Like this (I left off about 11 fields and removed some values):

    DocIDpk AreaID Element DocNum Title Status Media LstReviseDte LstReviewDte NxtReviewDte
    1 1 1 1 2 2 22-Dec-05 22-Dec-07


    AreaID (1) is the PK value from tblAreas. If that doesn't make sense to you, you probably should research db normalization.
    Last edited by Micron; 03-10-2022 at 10:35 AM. Reason: added info
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Best Practice db development - newby to Access
    By CraigJ in forum Database Design
    Replies: 4
    Last Post: 04-15-2015, 08:11 AM
  2. DB in development BLOAT
    By libraccess in forum Database Design
    Replies: 4
    Last Post: 12-05-2013, 10:58 PM
  3. Self Join Table Form Development
    By grizzly98 in forum Forms
    Replies: 1
    Last Post: 05-17-2012, 05:39 PM
  4. Development Time?
    By Drak in forum Access
    Replies: 2
    Last Post: 02-06-2012, 07:07 AM
  5. Access Runtime Development
    By crowegreg in forum Access
    Replies: 2
    Last Post: 08-09-2011, 09:22 AM

Tags for this Thread

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