Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    aaron.irvine is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2013
    Posts
    9
    Yeah I reckon I could do that ItsMe, but in all honesty I could run it without the OVERALL totals - it's probably the least significant of all of the totals that I need to calculate. The amount of time and effort that everyone is putting into it doesn't justify the outcome, so unless it's something you really want to see through to the end, I'd be happy to leave it out completely.



    Creating date filters that I can embed into buttons is more of a priority for me now, though even that I can do manually if need be.

    I'm starting to drown in data entry from this project, so I need to pick and choose how much time I put into the development of it!

    Let me know if you're happy to let it go, or if you want to nut it out - either way thanks a heap for all your help ItsMe and June7!!

  2. #17
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    Try this. If all you need is the average of two fields and rounded to thousandths....

    Code:
    Dim dblAvg As Double
    dblAvg = Me.QC_ONLY.Value + Me.SIG_ONLY.Value / 2
    dblAvg = Round(dblAvg, 2)

  3. #18
    aaron.irvine is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Oct 2013
    Posts
    9
    Code:
    Private Sub ReportFooter_Format(Cancel As Integer, FormatCount As Integer)
    Dim dblAvg As Double
    dblAvg = (Me.QCavgScore.Value + Me.SigAvgScore.Value) / 2
    Me.OverallAvgScore.Value = Round(dblAvg, 2)
    End Sub
    Also returned a blank.....

  4. #19
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    I copied your code into a blank mdb file that has a table, query, and report. I created some controls with names like yours. Everything worked without a hitch. Created an accdb file. Imported the table and query. Used the wizard and created a new report within the accdb. I got the same results as you. Blank control.
    .
    ReportSample.zip

    I will look into why this is not working in the accdb. Reports in newer versions are new to me....

    EDIT: works in Print Preview mode

  5. #20
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows XP Access 2003
    Join Date
    Aug 2013
    Posts
    7,862
    The format event does not fire unless you are in print preview. You can place the code in the Report's load event.

    Sorry about that. I have been using the format event for many years and am just now starting to understand these new fangled reports.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Error message code
    By FJM in forum Access
    Replies: 11
    Last Post: 09-09-2013, 04:42 AM
  2. Replies: 29
    Last Post: 06-19-2012, 12:12 PM
  3. code logic error
    By mejia.j88 in forum Programming
    Replies: 17
    Last Post: 03-27-2012, 10:03 PM
  4. Error in Code
    By Lockrin in forum Programming
    Replies: 3
    Last Post: 02-25-2010, 03:27 PM
  5. (simple) Expressions give error message
    By P.Hofman in forum Forms
    Replies: 3
    Last Post: 01-21-2010, 01:57 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