Results 1 to 2 of 2
  1. #1
    aamer is offline Competent Performer
    Windows 7 Access 2007
    Join Date
    Jul 2010
    Location
    Pakistan
    Posts
    276

    IFF Statement Help Required For Attachments

    I am trying to make a querry where if there is an attachment in table it says YES and if there is no attachment it says NO

    I am using the following but its not working

    Detail: IIf([purattach]>0,"Yes","No")

  2. #2
    recyan's Avatar
    recyan is offline Expert
    Windows 2K Access 2000
    Join Date
    Dec 2011
    Posts
    662
    Have you tried :

    Detail:IIf([purAttach]=-1,"Yes","No")

    Thanks

    Edit : I missed out totally on the keyword "attachment" in your post & assumed it as a Yes / No Field.

    Till someone comes along, Check out if below gives some guidelines :

    Detail: IIf(IsNull([purAttach_1].[FileData]),"No","Yes")
    Last edited by recyan; 04-28-2012 at 05:28 AM.

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

Similar Threads

  1. Attachments
    By JayX in forum Access
    Replies: 5
    Last Post: 12-27-2011, 03:08 PM
  2. Replies: 7
    Last Post: 08-17-2011, 01:49 PM
  3. attachments
    By chiefmsb in forum Forms
    Replies: 0
    Last Post: 07-12-2011, 07:32 AM
  4. attachments
    By chiefmsb in forum Access
    Replies: 1
    Last Post: 06-28-2011, 04:20 PM
  5. IIF statement for attachments
    By aamer in forum Access
    Replies: 13
    Last Post: 06-24-2011, 01:04 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