Results 1 to 3 of 3
  1. #1
    Vanita is offline Novice
    Windows 7 64bit Access 2016
    Join Date
    Feb 2019
    Posts
    23

    VB Code or Query design for Machine capacity calculation

    Hi,

    1. I have to calculate machine capacity for the 2 selected(random) dates.
    2. Have given the data available in the below table mentioning machine installed date etc.
    3. Report/Query shall ask for 2 dates which user enters as per the requirement.
    4. For ex: For given dates of 01/10/17 and 01/07/18 (User shall enter the required dates) i have Turning machines 2 and Milling Machines 2 Nos.
    5. Capacity(Turning)=273 days*2 Machines*22.5


    6. Capacity(Milling)=273 days*2 Machines*22.5

    Can you please help me out to design it!

    Thanx in advance!
    Attached Thumbnails Attached Thumbnails Details.png  

  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,445
    use datediff to determine the number of days (or subtract one from the other) which will give you your 273

    you need to be clear about date formats - your table shows 01-Dec-16 which is quite clear, whilst your from/to dates are 01/10/17 - is that 1st October or 10th Jan?



  3. #3
    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,737

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

Similar Threads

  1. Replies: 8
    Last Post: 01-18-2017, 11:31 AM
  2. Replies: 2
    Last Post: 10-15-2014, 04:23 AM
  3. Replies: 3
    Last Post: 03-08-2014, 05:48 PM
  4. Full Database and Table Capacity Reached
    By LizeAccess in forum SQL Server
    Replies: 1
    Last Post: 10-11-2011, 07:43 PM
  5. Access capacity
    By haniades in forum Access
    Replies: 2
    Last Post: 07-09-2011, 03:12 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