Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    nahum abramovich is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2018
    Posts
    62
    Click image for larger version. 

Name:	expression builder.jpg 
Views:	8 
Size:	176.5 KB 
ID:	41769Click image for larger version. 

Name:	control source.jpg 
Views:	8 
Size:	294.4 KB 
ID:	41770




    i JUST need some TEXT to appear ON FORM when 4 condition (THAT COMES from query - LIKE THE EXAMPLE ABOVE) is met.


    let say you have query [q] with 4 fields [a][b][c][d] and you want the word ATTENTION appear on your form if 4 [q] conditions is true? how do you do this?

  2. #17
    nahum abramovich is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2018
    Posts
    62
    hi

    but i want values come from the query ....

    i will try and let you know

    thank you

  3. #18
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941
    if it is to come from a query and not from fields in your form, use dcount

    =iif(dcount("*","[q]","[a]='Danny' And [b]='Triangular' And [c]='Red' And [d]>1")>0,"ATTENTION","")

  4. #19
    nahum abramovich is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2018
    Posts
    62
    i tried - no success

  5. #20
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,941
    'no success' does not help us to help you. With a naming convention like 'q', 'a' etc I suspect you have issues there. Clarify exactly what you have - sql to your form recordsource, sql to your 'q' query

  6. #21
    nahum abramovich is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Jun 2018
    Posts
    62
    very gooooooddddd mf

    thank you very much it worksssssss =iif(dcount("*","[q]","[a]='Danny' And [b]='Triangular' And [c]='Red' And [d]>1")>0,"ATTENTION","")

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

Similar Threads

  1. Replies: 6
    Last Post: 03-14-2019, 03:39 PM
  2. Replies: 4
    Last Post: 04-07-2018, 11:55 PM
  3. Replies: 3
    Last Post: 06-01-2017, 06:57 AM
  4. Replies: 2
    Last Post: 01-20-2014, 12:50 PM
  5. Replies: 2
    Last Post: 10-27-2009, 07:09 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