Results 1 to 2 of 2
  1. #1
    senna is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jan 2011
    Posts
    7

    Show label on report only if data in field

    Hello all,

    I have added a function to my report to save me time in having to constantly type in "SEE DSC1101, DSC1102, DSC1103 ETC ETC" as reference photos.
    I have created some fields in my table such as image1, image2, image3 etc.
    Now, all i do is enter the image number in those fields in my form and then they appear on my report..

    My issue/query is, how can i make the report so that it only shows the tags for the fields with data in them?



    For example, i have created enough fields for 10 supporting images, and at the moment, i have a report with
    DSC DSC DSC DSC DSC DSC DSC DSC DSC DSC

    So if i had taken 1 supporting image for this particular claim, it would show on the report as
    DSC1101 DSC DSC DSC DSC DSC DSC DSC DSC DSC

    Can i make the report so that the other EMPTY DSC fields dont appear unless there is data to show?

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,180
    Hi,

    I would change the structure a bit: having 10 fields in a table with the same data DSC1 to 10 isn't really the way to go in relational database design (check the normalisation rules). Just put the information in a second table that is linked to the main table with a one to many relationship. In this case you can have as many (or as little) supporting images as is necessary without showing empty values.
    In a report you can create columns to show the images one next to another.

    success
    NG

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

Similar Threads

  1. Vertical centering in a Label field?
    By newtoAccess in forum Access
    Replies: 1
    Last Post: 11-07-2010, 11:01 AM
  2. Label in Report
    By devcon in forum Forms
    Replies: 3
    Last Post: 07-10-2010, 12:29 AM
  3. Can't get new field to show in my data entry form
    By Suzie in forum Database Design
    Replies: 19
    Last Post: 12-21-2009, 03:48 PM
  4. Data won't show up in table field
    By texzen123 in forum Forms
    Replies: 3
    Last Post: 11-26-2009, 11:20 AM
  5. Replies: 2
    Last Post: 09-26-2009, 07:19 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