Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904

    By blank, do you mean that there is a space in there?
    If so, just use the TRIM function to drop any trailing spaces, i.e.
    Code:
    SELECT DONORS.ACCTID, DONORS.TITLE, DONORS.FNAME, DONORS.LNAME, DONORS.ADDR1, DONORS.CITY, DONORS.STATE, DONORS.ZIP, DONORS.COUNTRY, DONORS.SUPPORT1, DONORS.EMAIL1, DONORS.EMAIL2
    FROM DONORS
    WHERE (((DONORS.SUPPORT1)="X") AND (LEN(TRIM(DONORS.EMAIL1) & "X")=1) AND (LEN(TRIM(DONORS.EMAIL2) & "X")=1)
    ORDER BY DONORS.ACCTID;

  2. #17
    cshipley83 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    28
    The field is empty.

    Basically I need the mailing labels to pull for a specific person (Support1) where the address (ADDR1) is not empty and email addresses (EMAIL1 and EMAIL2) are empty.

  3. #18
    JoeM is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    Just use similar logic like we have already incorporated:
    Code:
    WHERE (((DONORS.SUPPORT1)="X") AND (LEN(TRIM(DONORS.ADDR1) & "X")>1) AND (LEN(TRIM(DONORS.EMAIL1) & "X")=1) AND (LEN(TRIM(DONORS.EMAIL2) & "X")=1)

  4. #19
    cshipley83 is offline Novice
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    28
    Thank you.

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

Similar Threads

  1. Hide report label when text box is null/blank
    By crsport3 in forum Access
    Replies: 7
    Last Post: 10-30-2013, 07:14 AM
  2. Update query to set null value lookup field
    By alexjose in forum Access
    Replies: 1
    Last Post: 06-24-2013, 04:26 PM
  3. Replies: 5
    Last Post: 09-18-2012, 12:39 PM
  4. Query Help - Show field if another field is null
    By lukekonrad in forum Access
    Replies: 1
    Last Post: 03-05-2012, 04:02 PM
  5. Total Query(One field with Null value)
    By vidplaylist in forum Queries
    Replies: 1
    Last Post: 11-30-2011, 03:57 PM

Tags for this Thread

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