Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2018
    Posts
    4

    Add a numbering sequence for instructions using a query.

    I have a table with different machines. A second table with different common instructions for those machines. My query is able to sort the instructions for each individual machine but I need to add a number to order the sequence for a complete procedure (re: Instruction 1, 2, 3...). Thank you for any help.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Add another integer field,
    number the instructions 1 thru N.

  3. #3
    Join Date
    Jul 2018
    Posts
    4
    Can it be done automatically?

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    It sounds like you have X machines. And that you may have a number of processes (Y) that involve machines.
    It also seems, and I could be way off base here, that the instructions are for using a particular machine or machines in doing some process or processes.

    Could you clarify your use of machine(s) and instructions? An example of what you have and what you need would be helpful.

    If it is how to start and operate and shut down each machine, then you could add a field to your machineInstruction table to identify seqNo.
    However, until we know the facts it is difficult to offer more focused advice.
    Good luck.

  5. #5
    Join Date
    Jul 2018
    Posts
    4
    The purpose is to set lock-out-tag out procedures for each machines. Each individual processes need to be in right sequence. Upon scope of repair, only selected processes are needed to lock machines. So numbering is used for sequencing and selecting lock-out processes.
    See sample below of desired output. I want to sequence the blue column.
    (Instructions are in French)

    Machine: Mixer 8 15 hp
    # Proc
    Risques
    Contrôle
    Localisation
    1
    Notification Aviser les employés concernés
    2
    Électriques Éteindre l'équipement
    3
    Électriques Fermer et cadenasser le contacteur Salle MCC-1
    4
    Électriques Faire un essai de mise en marche de l'équipement
    5
    Pneumatique Fermer et cadenasser l'arrivée d'air comprimé
    6
    Pneumatique Évacuer l'excès de pression d'air
    7
    Force de gravité Abaisser l'équipement à son point le plus bas
    8
    Force de gravité Si requis, installer un support pour prévenir la descente des équipements

  6. #6
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    6,128
    If the sequence number is always the same for a specific action on different machines, then ranman's suggestions will work.
    If however, a specific action may be step 1 for one machine or process but step 2 on another, that method won't work.
    Instead you could create rank order queries to get the sequence numbers
    Colin Riddington, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I know I don't know, I keep quiet!

  7. #7
    Join Date
    Jul 2018
    Posts
    4
    Thank you for your input.
    Finally I used Excel to generate my sequence number and then transfer data into the Access Dbase.

  8. #8
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,850
    For completeness can you show us a sample of your solution for 2 or 3 different machines?


    I want to sequence the blue column
    .
    There was no blue column.

    Your solution may help others.

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

Similar Threads

  1. Replies: 4
    Last Post: 10-07-2016, 05:26 PM
  2. Running code after edit/add instructions
    By Middlemarch in forum Access
    Replies: 16
    Last Post: 07-09-2016, 08:21 AM
  3. Replies: 5
    Last Post: 01-27-2016, 03:00 PM
  4. Replies: 2
    Last Post: 02-06-2013, 12:55 AM
  5. Adding Notes or Instructions to a Form
    By freddawson in forum Forms
    Replies: 1
    Last Post: 01-12-2012, 01:59 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