Results 1 to 10 of 10
  1. #1
    Join Date
    Feb 2025
    Posts
    4

    Question Copying and summing records named in a table a given number of times as specified in that table

    Hello,



    I am trying to make an inventory/project supply planning database for personal use.

    I have one table with every possible supply listed, and its units in a second field.

    I have a forum with dropdowns to select up to twelve supplies from that first table, and a second field for quantity without units shown.

    I have a third forum/table that has the number of times I plan to make each project, and the number of times out of those planned that I have actually done so.

    I would like to have something that looked up each record for each project listed in the last table, times however many instances are planned but have not been made, and sum up all of the supplies needed for everything, displayed with the relevant unit from table 1 where applicable (some things do not have units)

    I have not been able to figure out what tool or combination of tools to use for this, or find an effective way of looking it up (I suspect I'm missing some key vocabulary.)

  2. #2
    madpiet is offline Expert
    Windows 10 Office 365
    Join Date
    Feb 2023
    Posts
    566
    "copying and summing" just sounds SOOOO wrong.

    Can you post a diagram of your table design? (or an empty database... don't build forms yet!)

    What is this database supposed to do for you?
    "a form with dropdowns to select up to 12 supplies" sounds extremely suspect. Normally one would put something like that into a subform, since it's pretty much functionally equivalent to an Invoice Line Item table.

  3. #3
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,180
    Maybe better start from the beginning. It doesn't sound as you have much database or programming skills. So let's look at the project from the start.

    First decide how and where you want to use it? On a local PC/laptop? On your smartphone? On the web?
    Do you need reports you can open on every workplace from the web?
    Take a look at existing packages like MS Project, or other project management tools, maybe the perfect tool for you already exists.
    Exel and Access both have templates doing part of what you want.
    If you want to develop it yourself, what are your skills? Are you willing to spend time learning how to design a database and program the user interface?

  4. #4
    Join Date
    Feb 2025
    Posts
    4

    thank you

    Quote Originally Posted by NoellaG View Post
    Maybe better start from the beginning. It doesn't sound as you have much database or programming skills. So let's look at the project from the start.

    First decide how and where you want to use it? On a local PC/laptop? On your smartphone? On the web?
    Do you need reports you can open on every workplace from the web?
    Take a look at existing packages like MS Project, or other project management tools, maybe the perfect tool for you already exists.
    Exel and Access both have templates doing part of what you want.
    If you want to develop it yourself, what are your skills? Are you willing to spend time learning how to design a database and program the user interface?
    Ive looked and couldnt find a template-- Im wanting to do more than this as well, this just seemed like my first point of stuck. You are correct that this is only my second database I've made, and the first did not have nearly as much complexity. I am explaining further in a reply to the first response.

  5. #5
    Join Date
    Feb 2025
    Posts
    4
    Im not specifically wanting to copy-- just get the totals.

    I figured I was probably going about this massively wrong, as its only the second time I've done a not from template database.

    My end goal is a template that I can use to track various sorts of projects requring lots of different supplies measured in different units, that will tell me how much of each I need for a given thing. Twelve was just picked as a semi random starting point.

    Eventually, I would like to link this up to my inventory spreadsheet, and add in prices for supplies in inventory and price ranges for supplies not in inventory. I would also like to add dates to it eventually, as in "if I did projects A, B, and C each by their own due date, how much of each supply would I need by X and what is the price range/ money already expended on those supplies?" or also "If I do X instances of this project by the end of february, what is the total amounts, prices, etc? " I would also like to add the ability to put time in hours and minutes, and to have the ability to have projects also be supplies-- for instance project 1 is a supply for project 2.

    Im not specifying a use case here as I have several where I've been wanting the same template for a few years now. At this point I realized that I should probably just spend the time to learn how to do it properly, since nothing premade I found worked.

    My smallest use case has a supply list of under 70, my largest over 3600. Hence the idea of having a table of all of the items and unit, and then inputting projects initially as a set of those items referenced from the table, which from what I read seemed best done via forum with lookup? Eventually I would want to add deadlines and hours/minutes to each project, and prices/price range per unit to supplies, but I am aware that that is way more complicated. I would also like to add categories and subcategories (and perhaps sub-sub-categories) to the 3600 supply plus use case, but I actually do know how to do that I think.

    So my intended starting place is basically what I said above-- input number of times of a series of projects, output combined list of all supplies with units.

    This is replacing increasingly horrible excel crimes, that got to the point where I realized I really did need to learn how to properly database it.
    Last edited by AgesofDetail; 02-05-2025 at 10:33 AM. Reason: Further detail.

  6. #6
    Join Date
    Feb 2025
    Posts
    4
    I had meant my last reply to thread to be a reply to this, my page refreshed and I didn't notice it had come un-chained.

  7. #7
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,180
    Here is a very simple example of a possible structure:
    Click image for larger version. 

Name:	SimpleExample.jpg 
Views:	23 
Size:	48.2 KB 
ID:	52675

  8. #8
    jojowhite's Avatar
    jojowhite is online now Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    434
    also another possible schema:
    Click image for larger version. 

Name:	schema.png 
Views:	16 
Size:	29.3 KB 
ID:	52678

  9. #9
    jojowhite's Avatar
    jojowhite is online now Competent Performer
    Windows 11 Access 2021
    Join Date
    Jan 2025
    Posts
    434
    see this simple demo.
    open form frmMain.
    Attached Files Attached Files

  10. #10
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,821
    Hi
    Are you able to upload a copy of your Excel File?

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

Similar Threads

  1. Query same record a specified number of times
    By GraeagleBill in forum Queries
    Replies: 2
    Last Post: 10-22-2017, 04:31 PM
  2. Summing Multiple Queries & Summing Time
    By WEJ in forum Queries
    Replies: 2
    Last Post: 10-04-2013, 04:46 PM
  3. Replies: 3
    Last Post: 12-01-2012, 12:37 PM
  4. Replies: 4
    Last Post: 09-17-2012, 02:15 PM
  5. Replies: 3
    Last Post: 07-10-2012, 05:50 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