Results 1 to 2 of 2
  1. #1
    grahamYSA is offline Novice
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Posts
    1

    Enter parameter value when fields are correct

    HI, hope this isn't a dumb question, I am a newbie.

    I have used the Data tab on a property sheet for a field in a report to build this expression (using expression builder) as the control source "=IIf([AllSchoolContacts].[Email]>" ",[AllSchoolContacts]![Email],[EmailAddress])" When I view the report I get the Enter Parameter Value dialog labelled AllSchoolContacts
    I have added the fields to the expression using the expression builder the sources for the report are a table and a query in the REPORT.


    The tables are AllSchoolContacts and Non Metro Query.

    What I am trying to do is to have the record line show the email address for the organisation if the email address field in the AllSchoolContacts is blank.

    Hope someone can help!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Blank field can be either Null or empty string. They are not the same thing. I do not allow empty string in table fields. Most likely your field is Null.

    Try using Nz() function.

    Nz([Email], [EmailAddress])

    Can do this calc in query and bind textbox to the constructed field or put the expression in textbox.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 2
    Last Post: 05-20-2015, 08:26 AM
  2. Enter Parameter Value
    By The Professor in forum Programming
    Replies: 3
    Last Post: 07-29-2014, 12:41 PM
  3. Replies: 13
    Last Post: 01-10-2012, 09:56 AM
  4. Enter Parameter Value
    By kwooten in forum Queries
    Replies: 13
    Last Post: 08-11-2011, 02:35 PM
  5. Replies: 0
    Last Post: 10-12-2010, 06:08 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