Results 1 to 6 of 6
  1. #1
    Thadeus1991 is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    Nov 2017
    Posts
    7

    How can I auto-update a table used to track monthly progress based on information in other tables

    Good afternoon everybody,



    I am a newbie to the forum (1st post as a matter of fact) and also fairly new to access.

    To explain my problem(s), let me tell you what I use my database for and what I am trying to achieve:


    I am using the database to store information of the supply chain of our company. The company I work for is a fruit importer, so our supply chain looks something like this:

    Growers --> Pack Sites --> My Company --> Retailers

    We have several suppliers, each with one or more sites. For each supplier site, I store information relating to the commodities the site processes, the country the site is located in, which customer(s) each site is used for, etc.

    I also track the Due-Diligence status of each site using the access database (e.g. has the site provided their reference number, have they shared the site's information with us, have they completed their questionnaire, etc).

    Naturally, I am tracking the progress month-on-month. By "progress" I mean every month I track, how many sites have shared their information, have completed their questionnaire, etc. so that I am then able to make month-to-month comparisons.
    I used to do all this in Excel but have now changed over to Access. To track the progress I have a table that I want to update every month for each of our three commodities (so 3 new rows each month) to track the progress. It looks like this:

    Commodity Year Month (Numbr) Month (Text) Total Suppliers Compliant Suppliers Total Sites Sites that are linked online Sites with completed questionnaire Number of audits in last 2 years
    ... ... ... ... ... ... ... ... ... ...
    ST 2017 10 Oct 5 4 20 17 17 10
    AV 2017 11 Nov 100 85 500 390 300 210
    TF 2017 11 Nov 50 50 80 75 70 50
    ST 2017 11 Nov 5 5 20 19 19 12

    My question is, how can I create an append query (or even just a form) that allows me to easily update this table?

    I struggle to do this in any way that is not completely manual due to several reasons:
    • I can't figure out how to count unique entries based on commodities (e.g. how many suppliers/sites are there for the commodity AV)
    • I can't work out what the best way is to do a count of compliant sites ("compliance" of a site in "tblPack_Sites" is based on information from table "001tracker..."
    • I can't work out how to make all necessary values appear in one single query/form/report


    The only thing I have managed so far (after hours of Google) is to do counts of the suppliers and sites by commodity by using a Totals query (but only ever got the result for one commodity, so would have to run three queries to get the results for each commodity individually. Also, I was unable to take these results and add them to a form).

    Please see below the relationship structure of my database, to give you an idea of the database.

    Click image for larger version. 

Name:	Capture.JPG 
Views:	20 
Size:	71.3 KB 
ID:	31403

    If you guys need more information, please ask and I will provide the info.

    Any help would be very much appreciated.
    Last edited by Thadeus1991; 11-24-2017 at 06:46 AM.

  2. #2
    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,725
    You will have fewer syntax errors if you adopt a naming convention that does not use embedded spaces in field names.

    It would be better for you and readers if you would start with a clear, simple English description of the business you are trying to support with this proposed database.

    I see Suppliers, Sites and Commodities. What exactly do you mean by "track the progress"?

  3. #3
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    In addition:

    Database Table and Field Naming Suggestions
    http://www.databasejournal.com/featu...uggestions.htm


    Some suggestions:
    Use only letters and numbers (exception is the underscore) for object names.
    Do not use spaces, punctuation or special characters in object names.
    Do not use look up FIELDS, multi-value fields or calculated fields in tables.
    Do not begin object names with a number.

    I always use an autonumber type field for the PK field, NEVER test fields (It appears that "Country" is a test type field)
    It looks like you have 3 MVFs in "tblSuppliers". Most experienced Access programmers/developers avoid MVFs.

  4. #4
    Thadeus1991 is offline Novice
    Windows 8 Access 2013 64bit
    Join Date
    Nov 2017
    Posts
    7
    Quote Originally Posted by orange View Post
    You will have fewer syntax errors if you adopt a naming convention that does not use embedded spaces in field names.

    It would be better for you and readers if you would start with a clear, simple English description of the business you are trying to support with this proposed database.

    I see Suppliers, Sites and Commodities. What exactly do you mean by "track the progress"?

    Thanks for that - I will make sure to change the field names and replace spaces with underscores.
    Regarding your other questions, I updated the original post now, here are the answers:
    • The company I work for is a fruit importer, so our supply chain looks something like this:

      Growers --> Pack Sites --> My Company --> Retailers




    • By "progress" I mean every month I track, how many sites have shared their information, have completed their questionnaire, etc. so that I am then able to make month-to-month comparisons.


    I have also extended the table in the post to make more obvious what I mean by "tracking the progress"

    Does this help?

  5. #5
    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,725
    A few things still not clear:

    -questionnaire
    -commodity AV
    -compliant Site
    -online site
    -001tracker...
    -audits

    Again, step back and give readers an overview of the business in simple terms. We're willing to help, but should not have to guess a the meaning and fit of the various terms. Look at this from a different perspective --you have a group of people(designers/developers/testers) who are seeking a clear understanding of the business processes and your requirements before offering advice or jumping the gun and/or giving options for a problem they don't really understand.

    Good luck

  6. #6
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,799
    If a supplier and a pack site can be in different countries, then OK with country being in each of those tables. If not, then no. No clue as to the 001 table needing country without understanding the significance of it. This might also mean that country field needs to be joined to suppliers and pack sites. What's more worrisome is the multi value fields as noted. Really suggest you review normalization so that you can better grasp the concept of entities and relationships as well as a few other highly important subjects:

    Normalization Parts I, II, III, IV, and V
    http://rogersaccessblog.blogspot.ca/...on-part-i.html
    and/or
    http://holowczak.com/database-normalization/

    One source about how to name things - http://access.mvps.org/access/general/gen0012.htm
    What not to use in names - http://allenbrowne.com/AppIssueBadWord.html
    About Auto Numbers

    - http://www.utteraccess.com/wiki/Autonumbers
    - http://access.mvps.org/access/general/gen0025.htm

    The evils of lookup fields - http://access.mvps.org/access/lookupfields.htm
    Table and PK design tips - http://www.fmsinc.com/free/newtips/primarykey.asp
    About calculated table fields - http://allenbrowne.com/casu-14.html
    Last edited by Micron; 11-24-2017 at 10:59 PM. Reason: clarification
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Students Monthly Progress Report
    By maneeshmassey in forum Access
    Replies: 2
    Last Post: 11-08-2016, 04:32 PM
  2. Replies: 7
    Last Post: 10-16-2016, 01:16 PM
  3. Wondering if access can track visits/progress notes.
    By jordancemery65 in forum Access
    Replies: 29
    Last Post: 09-18-2013, 10:03 AM
  4. Track changes of raw table data information.
    By jacjacjac in forum Access
    Replies: 7
    Last Post: 12-23-2012, 10:02 PM
  5. Replies: 4
    Last Post: 09-03-2009, 02:01 PM

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