Results 1 to 6 of 6
  1. #1
    skocev is offline Novice
    Windows 7 Access 2007
    Join Date
    Mar 2010
    Location
    In real Macedonia not in greek one
    Posts
    9

    Question How to create form in wich by selecting i can chouse wat kind of report i'll see.

    I'm trying to make one smole app for my workers, sometingh like daily report from wich i can see where we have more oftenly problems and in wich department or machine. Now i have problems with adding totals to reports and filters for reports. My table look like this:
    (DATE) (WORKER) (MACHINE) (DEPARTMENT) (START TIME) (END TIME) (TOTAL TIME) (TOTAL STOP TIME IN PROD.) (PROBLEM) (REASON)
    so, everyday worker after every finished job have to fill this table. My problem is that i need to see SUM from (total time) colum in my reports. I try a lot of thing but i didn't make it as i wish. Allso i wish to make one form where i will chouse what kind of report i'll see, by worker, or by machine, or department or by total times. I need in each report to have sum of all total times. I need allso in each report to see sum of all (total stop time in prod).
    I think that i explan enough but if you need some more information about this tell me.
    Best regard, stojan
    Last edited by skocev; 03-26-2010 at 05:57 AM.

  2. #2
    objNoob is offline Novice
    Windows XP Access 2003
    Join Date
    Mar 2010
    Posts
    21
    Lookup the SUM() function.

    And Lookup DoCmd.OpenReport. With a select case and .OpenReport, you can open any report selected from a drop down

  3. #3
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    I have done some thing for you

    addressed thhe following problems:
    1) sum Total Hours
    2) Form to open selected Reports.

    To find Date and time difference when you have adte and time in seperate Fields and are date/Time Fields

    DateDiff("h",[Entry_Date]+[Starting_Time],[Entry_Date]+[Ending_time])

    if they are store in text field then:
    DateDiff("h",CDate([Entry_Date] & " " & [Starting_Time]),CDate([Entry_date] & " " & [Ending_Time]))

    explore the database give me more details if you need any more help. will be glad to design the database for you.

  4. #4
    skocev is offline Novice
    Windows 7 Access 2007
    Join Date
    Mar 2010
    Location
    In real Macedonia not in greek one
    Posts
    9

    Post

    Hi Maximus,
    thanks for halping me. I see your example but that is not what i need. In attachment you hve my full database. The looks of tables, forms and reports is final. My problem is in "Preview reprt" form. I have put butons and commbo box so you can chouse what kind of report to view. It should to work like this:
    Chouse type of report: daily/weekly/monthly/yearly. Then you chouse report by electrician or depatment or machine or you chouse to see full report. Report is open and if you wish you can print it or just close it.

    This is all i need. All other tninks are done.

  5. #5
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    I will solve the problem and get back to you tommorow.

  6. #6
    skocev is offline Novice
    Windows 7 Access 2007
    Join Date
    Mar 2010
    Location
    In real Macedonia not in greek one
    Posts
    9

    Post

    ok, thanks you.

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

Similar Threads

  1. Create PDFs from a report
    By twosides in forum Programming
    Replies: 42
    Last Post: 03-04-2010, 06:48 AM
  2. Create CrossTable Query report
    By ysrini in forum Reports
    Replies: 1
    Last Post: 02-19-2010, 11:20 AM
  3. Create a recordset for a report
    By vjboaz in forum Programming
    Replies: 0
    Last Post: 11-18-2008, 03:28 PM
  4. Create a date 'from' - 'to' on Report
    By Jule in forum Reports
    Replies: 7
    Last Post: 12-07-2006, 02:34 AM
  5. Create a calendar report?
    By valkyry in forum Reports
    Replies: 0
    Last Post: 09-14-2006, 11:34 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