Results 1 to 2 of 2
  1. #1
    flea is offline Novice
    Windows 10 Access 2016
    Join Date
    Jun 2019
    Posts
    1

    Assigning #'s based on two criteria

    Hi,

    So I'm trying to write a program that can search through part shipments by every nth shipment. To do this I was thinking I wanted the program to assign an ID number based on the date the part was received and the vendor number, that way each part coming in on a shipment could have the same ID number.

    for example
    ID # Date Received Vendor # Part #
    1 11-27-19 36300 AGXXX
    1 11-27-19 36300 EXXXX
    1 11-27-19 59800 LXXXX
    2 11-30-19 36300 FXXXX
    1 11-30-19 32400 KXXXX



    Is there a way to do this?

    I already have a table that collects Vendor #, Date, Part #, Material, etc. from a form.

    Thanks!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    youd have a master & child table/form

    master form would have ID field
    the child table and form would also have ID field.
    the child subform would be bound to the parent form via ID field (link master fields, link child field)

    enter 1 in the master form id field
    now every item you enter into the subform will assign 1 in ID to every record.

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

Similar Threads

  1. Replies: 5
    Last Post: 12-02-2018, 11:43 PM
  2. Replies: 14
    Last Post: 10-24-2017, 11:07 AM
  3. Replies: 7
    Last Post: 11-18-2016, 12:14 PM
  4. Replies: 3
    Last Post: 07-25-2013, 05:19 PM
  5. Replies: 1
    Last Post: 02-29-2012, 04:46 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