Results 1 to 4 of 4
  1. #1
    adriana is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    2

    production records

    Hi, I'm glad to find you



    I created a db in access 2010 where I insert the daily production(knitwear), so I have the fallowing tables: [Articles] with the fields Article (primary key) and Ncycle(this is the number of cycle to be done to a certain article); [Orders] with the fields : IDOrder (primary key), Date, Article, Quantity, hours to do
    [daily production] with the fields: Date, Article, Cycle, Quantity, IDOrder. The relation sheep [Orders].[IdOrder] one to many with [daily production].[IDOrder]; [Articles].[Article] one to many with [orders].[Article].

    I created a query of calculation where I drew the tables: Articles, Orders, daily production, with the fields [Date] and [Article] from table [daily production], and I made the following formula: production made:[daily production].[Quantity]/[Article].[Ncycle]; production still to be done:[Orders].[Quantity]-[production made]

    done hours: ([production made]*[orders].[hours to do])/[Orders].[Quantity]; hours still to be done:[Orders].[hours to do]-[done hours].

    and the query does all calculations, BUT if I have 400 clothes to do,every day the query have to subtract the quantity already made (ex: 10.05.13 made quantity 50, remaining : 350 (400-50), 11.05.13 made quantity 60, remaining: 290 (350 -60)), but the query does not doing this calculation, every day starts do substract to begin: 11.05.13, remaining 340 (400-60), the same thing with the hours.

    There is a VBA code do do this?

    Please help me

    thank you

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,891
    Start with a review of http://allenbrowne.com/AppInventory.html

    If you want to account for daily production then need a table to store the daily data.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    adriana is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2013
    Posts
    2
    Quote Originally Posted by June7 View Post
    Start with a review of http://allenbrowne.com/AppInventory.html

    If you want to account for daily production then need a table to store the daily data.
    Hi June, and thank you for your readiness, I have a table to store the daily data, which is [daily production], but now I need a query to calculate the remaining of clothes do do. If I have to do 1000 clothes, the first day I made 100, the remainder is 900, the next day I made 80, the remainder is 820, and so on, but the query every day starts to calculate "remainig of production" from zero, first day remaining is 900, the next day 920. That's why I think that there is a VBA code, because I make all test in query, but there is nothing to do. Can you help me, or maybe you now a link where there are VBA codes that I need ?

    Thank you again

    have a nice day

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,891
    You also need a table that has transactions for the production commitment. Then calculate difference between sum of commitment and sum of daily production, grouping by customer or order or whatever. Use aggregate query to calculate the sums. Then join the queries. Without knowing your db better, can't be more specific.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Loan Production Report
    By vickan240sx in forum Access
    Replies: 4
    Last Post: 09-17-2012, 01:47 PM
  2. Need a form to relieve a production log
    By payton_fulton in forum Forms
    Replies: 15
    Last Post: 05-11-2012, 03:31 AM
  3. TAT and Queue Time - Production
    By KrenzyRyan in forum Queries
    Replies: 1
    Last Post: 05-20-2011, 10:57 AM
  4. Production Tracking
    By old_chopper in forum Access
    Replies: 2
    Last Post: 10-11-2010, 12:12 PM
  5. Production
    By teranet in forum Access
    Replies: 1
    Last Post: 06-07-2008, 06:47 AM

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