Results 1 to 3 of 3
  1. #1
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568

    Check if field contains only one filtered value

    Hi,



    I have split form where i am using multisearch texboxes.

    One of this field is Status.
    I want to check if within this field is only Status "Zakończono".
    If there are more then one type of Status msgbox should show.

    In example below there are Status "Zakończono" and status "Wyeksportowano" so msgbox should be shown.

    How can i do this ?

    Thank you,
    Jacek

    Click image for larger version. 

Name:	status.png 
Views:	8 
Size:	50.9 KB 
ID:	31479

  2. #2
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    I was thinking about adding hidden text box and there after clicking magnifying glass the new textbox would be updated.

    for example user will write "Zako" and new text box will be updated.
    And somehow my code should check if "Zako" belongs to "Zakończono"...

    Jacek

  3. #3
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Problem solved.

    You can use Dcount function and count values different then Status 'Zakonczono'
    (where clause something like Status <> 'Zakończono')

    Jacek

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

Similar Threads

  1. Filtered Records Wont Stay Filtered
    By ortizimo in forum Access
    Replies: 4
    Last Post: 11-29-2017, 07:08 PM
  2. Replies: 2
    Last Post: 07-27-2015, 05:20 PM
  3. Replies: 4
    Last Post: 02-03-2014, 12:16 PM
  4. Filtered Report from filtered datasheet form
    By gemadan96 in forum Reports
    Replies: 7
    Last Post: 01-03-2014, 05:12 PM
  5. Replies: 7
    Last Post: 01-12-2011, 08:59 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