Results 1 to 7 of 7
  1. #1
    aligahk06 is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Posts
    94

    Designing a new form or databse based on excel sheet

    Dear All,



    I want a template in excel or form in a access that meet my requirement for attached excel sheet.
    Every day i.e starting from first day of the month and untill end of month , i want to enter as reading before and reading after the difference in separate field.
    Then day1 total cubic meter and again for the second day reading before and reading after and then sum for the second day. it continues untill end of the month day.

    Please provide me a solution either in ms access or excel based on automation.
    For Report : day 1 total and so on until last day of the month in cumulative .

    Please see attched for ref and i want automated solution...


    Any help ..
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    In Access, enter raw data records into table then build query and report to do calcs.

    Calculate difference in query.

    SELECT *, [After]-[Before] AS Diff FROM tblData;

    Use that query as report RecordSource and calculate daily sum on Diff field in report that has grouping on date value.

    Don't use Date as field name because it is a reserved word (intrinsic function). Use something like ReadDate.
    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
    aligahk06 is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Posts
    94
    Sir,

    Can u please provide me a sample based on attached excel sheet.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    Suggest you do the work and build database and attempt query. If you still have difficulty, post question and even db for analysis.

    Perhaps you should spend a solid week studying an introductory tutorial on Access.
    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.

  5. #5
    CarlettoFed is offline Competent Performer
    Windows 7 64bit Access 2013 32bit
    Join Date
    Dec 2019
    Posts
    255
    Starting from the first table where only the data is stored, it is possible to use the Grouping function available on the Data ribbon in Excel, as you can see in the second table.

    Date Reading Before M3 Reading After M3 Qty,(M3)
    1/Aug/2020 3 34,40 31,40
    1/Aug/2020 34,40 66,50 32,10
    1/Aug/2020 66,50 97,20 30,70
    1/Aug/2020 97,20 129,60 32,40
    1/Aug/2020 129,60 162,40 32,80
    1/Aug/2020 162,40 195,90 33,50
    2/Aug/2020 195,90 200,80 4,90
    2/Aug/2020 200,80 300,80 100,00
    3/Aug/2020 300,80 330,80 30,00


    Date
    Reading Before M3 Reading After M3 Qty,(M3)
    1/Aug/2020 3 34,40 31,40
    1/Aug/2020 34,40 66,50 32,10
    1/Aug/2020 66,50 97,20 30,70
    1/Aug/2020 97,20 129,60 32,40
    1/Aug/2020 129,60 162,40 32,80
    1/Aug/2020 162,40 195,90 33,50
    1/Aug/2020 Totale
    192,90
    2/Aug/2020 195,90 200,80 4,90
    2/Aug/2020 200,80 300,80 100,00
    2/Aug/2020 Totale
    104,90
    3/Aug/2020 300,80 330,80 30,00
    3/Aug/2020 Totale
    30,00
    Totale complessivo
    327,80

  6. #6
    aligahk06 is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Posts
    94
    Please see attached DB for above subject .
    Attached Files Attached Files

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,822
    Looks like a good start. Except Qty should not be a Number type field in table. It should either be a Calculated type field OR it should not be there at all and do Qty calc in a query or with expression in textbox.

    You have a form for data input. Now build a report as described.
    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. Replies: 1
    Last Post: 08-28-2019, 04:26 AM
  2. Replies: 2
    Last Post: 02-26-2019, 07:54 AM
  3. Replies: 5
    Last Post: 04-25-2017, 01:38 AM
  4. Replies: 26
    Last Post: 01-08-2013, 04:55 PM
  5. Help designing sheet music database
    By kingy75 in forum Database Design
    Replies: 1
    Last Post: 02-04-2010, 08:12 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