Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922

    Open the Report in design view and then press <ALT> F11
    Paste the code in there.

  2. #17
    two_smooth's Avatar
    two_smooth is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    19

    Unhappy Populating a "Text" Field in a Report

    Quote Originally Posted by RuralGuy View Post
    Open the Report in design view and then press <ALT> F11
    Paste the code in there.
    RG,

    I'm totally lost now. I've attached a zip file of the DB. Thanks for all of your help.

    two_smooth

  3. #18
    ConneXionLost's Avatar
    ConneXionLost is offline Simulacrum
    Windows XP Access 2003
    Join Date
    Jan 2010
    Location
    Victoria, Canada
    Posts
    291
    Hi two_smooth,

    RuralGuy's function is in the right place and working fine. The problem exists in the table. Despite the fact you have the default values set to "0" for your GradePoints fields, it appears that you've removed the zeros from many of the fields and left them as null. As RuralGuy alluded to earlier, numeric/arithmetic operations don't work well with nulls.

    Probably the easiest solution for you now is to go to your report and change the formula for your "Total Accumulated Points" textbox from this:

    Code:
    =[6thGradePoints]+[7thGradePoints]+[8thGradePoints]+[9thGradePoints]+[10thGradePoints]+[11thGradePoints]+[12thGradePoints]
    to this:

    Code:
    =Nz([6thGradePoints])+Nz([7thGradePoints])+Nz([8thGradePoints])+Nz([9thGradePoints])+Nz([10thGradePoints])+Nz([11thGradePoints])+Nz([12thGradePoints])
    The Nz function will return a zero in place of a null and allow your arithmetic to continue.

    Cheers,

  4. #19
    two_smooth's Avatar
    two_smooth is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    19
    RG,

    THANKS so MUCH for your help and support, it is very much appreicated.

    two_smooth

  5. #20
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You're welcome but don't forget ConneXionLost! We both helped.

  6. #21
    two_smooth's Avatar
    two_smooth is offline Novice
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    19
    ConneXionLost,

    My BAD, thanks for your help and support too!!!

    two_smooth

    Don't Count the Dats, Make the Days Count!

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

Similar Threads

  1. replace a empty field with the word "none" how??
    By techexpressinc in forum Queries
    Replies: 1
    Last Post: 01-15-2010, 11:02 AM
  2. Error message and How do I find the "value Field" ?
    By createdwithfire in forum Forms
    Replies: 1
    Last Post: 11-05-2009, 12:26 PM
  3. aSTR = Dir("C:\*.*") >> "Type Mismatch"
    By JGrant in forum Programming
    Replies: 1
    Last Post: 03-28-2009, 05:17 AM
  4. Replies: 0
    Last Post: 02-24-2009, 12:37 PM
  5. "Count" and "Countif" in Reports
    By JMantei in forum Reports
    Replies: 1
    Last Post: 06-20-2006, 02:20 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