Results 1 to 2 of 2
  1. #1
    chriswrcg is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2018
    Location
    Usa
    Posts
    142

    how many queries do I need

    Here is one of the eventual reports I will be creating based on the data that I am entering. This report is essentially the backbone of all the other reports that I will need to generate, as it includes all the queries I will need to create the reports.
    Click image for larger version. 

Name:	16.JPG 
Views:	10 
Size:	166.5 KB 
ID:	35907
    You can break the queries down into two categories. 1. individual tasks and 2. overall daily. In total I will need at least 20 different calculations or queries. Some of these are rather straight forward as 1+1=2 and some are going to be more complex and requiring the results of other queries.

    My question is, do I create a query for each calculation that I need or do I combine some to save space since most are going to be coming off the same tables?

    For time I will not list all the queries I will need but some of the simple ones will be.

    1. Clocked Time = ([clockouttime]-[clockintime])*1440 This is the time a person works in the day in total minutes.

    2. Paid time = Clocked time -lunch

    3. Earned time = number of trips times the task standard. The standard is how long it takes to make one trip (dock-bin-dock). So if you take 10 trips and the standard is 6 (10*6=60) the job should take an hour. I will need a query for each task and then one to add all the task earned time together for the daily whole.



    and so on. I could combine 1 and 2 into the same query string or create two separate ones. what should I do?

  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,870
    In my view queries are a long way down the road. First is to describe the requirement in simple terms, then identify the subject matter and how those subjects are related to one another and build a draft model(pencil and paper is fine), then using your sample reports (required output) create some test data and vet your model adjusting as necessary. When you are confident you can access the necessary data, set up a prototype based on your model. Develop queries to select the needed info.

    Good luck with your project.

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

Similar Threads

  1. Replies: 5
    Last Post: 06-05-2016, 09:23 PM
  2. queries based on union queries
    By vicsaccess in forum Queries
    Replies: 3
    Last Post: 10-10-2015, 07:53 PM
  3. Replies: 9
    Last Post: 08-27-2014, 11:34 AM
  4. Replies: 6
    Last Post: 11-13-2013, 04:17 PM
  5. Queries
    By PattyCh in forum Queries
    Replies: 1
    Last Post: 04-07-2013, 01:15 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