Results 1 to 2 of 2
  1. #1
    SunTop is offline Advanced Beginner
    Windows 8 Access 2016
    Join Date
    Aug 2016
    Posts
    93

    sequential numbers on filtered query

    Hello everyone,


    I have a table that contains a list of products, this table contains a column for the product center, I also have a query based on this product table that contains a criteria to filter the products according to the center that it belongs to, now I need to apply a certain sequence to the filtered query, meaning I need to put sequential numbers to the products, but then I realized that I can’t store data into a query, I only can store data into the table, but if I added the sequential numbers to the table, then I will add it to all the products without the filtered by center criteria, how can I add sequential numbers to the filtered criteria without having to store the data into the unfiltered table ?

  2. #2
    Join Date
    Apr 2017
    Posts
    1,681
    One possibility - you have a table of products produced at work centers (there even is the possibility, that some product is produced on several work centers). And in this table, you have a field, where all products belonging to same work center are given a order number (from 1 to ...) following some rule (and maybe an additional field which indicates, is the row active or not - for inactive rows no order number is calculated). In case those numbers must be recalculated over time, you create a procedure which is called p.e. from OnOpen event of projects start form or from OnClick event for button on some form.

    Then you can make your query based on this table.

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

Similar Threads

  1. Sequential numbers...
    By jlgray0127 in forum Programming
    Replies: 1
    Last Post: 04-03-2013, 10:06 AM
  2. Sequential Numbers
    By cactuspete13 in forum Queries
    Replies: 5
    Last Post: 03-27-2013, 12:14 PM
  3. To generate sequential numbers in query
    By lizzywu in forum Programming
    Replies: 1
    Last Post: 03-02-2012, 12:01 PM
  4. Replies: 11
    Last Post: 07-14-2011, 03:03 PM
  5. How to add sequential numbers to query resultset
    By h_latha2k in forum Queries
    Replies: 3
    Last Post: 04-29-2011, 08:53 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