Results 1 to 4 of 4
  1. #1
    SilverSN95 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2009
    Posts
    11

    Report Data Field Issue

    Hello,

    I am building an access report that is displaying a a query grouped by a category called "Section". This part is working fine, and the averages are appropriately summarized in the section footer. If I place "Section" as a field in the section header, I see the appropriate numerical value.

    The problem is I would like to display a certain wording depending on the section. (i.e. =iif(Section = 1, "Section 1 wording".....)

    Any kind of test I make with [Section] gives me back an error. Even just testing [Section] = 1 produces an error when running the report. I even tried VarType(Section) to be sure, and it gave me back 11 which appearently is an error code. I tried doing this in different sections of the report to see if there was a difference with no luck.

    Any thoughts?

    I'm realizing it would probably be easier to just build another table for these wordings and query them, but Im curious now as to why I am running into this issue. Let me know if more information will help.

    Thanks!

  2. #2
    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
    Using reserved words such as Section can have interesting effects.

  3. #3
    SilverSN95 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2009
    Posts
    11
    Thanks rural that turned out to be the issue, I really should have known to check that.
    Even though I wasted a decent amount of time trying to figure this out its good to know its not an issue with my table/query!

  4. #4
    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
    Excellent! Glad we could help.

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

Similar Threads

  1. Replies: 3
    Last Post: 06-23-2010, 02:02 PM
  2. Interesting Issue With Report
    By dynamictiger in forum Reports
    Replies: 1
    Last Post: 04-15-2010, 05:40 AM
  3. Urgent issue! Create field for intervals
    By Bjorn in forum Queries
    Replies: 3
    Last Post: 02-10-2010, 10:26 AM
  4. Issue summing two field values
    By w2vijay in forum Reports
    Replies: 4
    Last Post: 02-10-2010, 01:53 AM
  5. Subform Data Entry Issue
    By yuriyl in forum Forms
    Replies: 3
    Last Post: 05-14-2009, 08:49 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