Results 1 to 4 of 4
  1. #1
    nishant.dhruve is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    34

    Question next button

    Click image for larger version. 

Name:	Capture.PNG 
Views:	9 
Size:	25.9 KB 
ID:	25486Click image for larger version. 

Name:	Capture11.PNG 
Views:	9 
Size:	48.6 KB 
ID:	25485

    I want to program next button such that what ever check box are selected according to name of that check box it should open a report with all those selected filter and no other record are shown except that filter.


    can anyone suggest me code on it?
    Attached Thumbnails Attached Thumbnails Capture0.PNG  

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    in the query driving your report have a formula something like:

    SHOWME: iif(forms!FORMNAME![General Prod] = -1 and [Area of SOP] = 'General Prod', 1, 0) + iif(forms!FORMNAME![Granulation] = -1 and [Area of SOP] = 'Granulation', 1, 0)

    Then apply a criteria of

    >=1 to the SHOWME field

  3. #3
    nishant.dhruve is offline Advanced Beginner
    Windows 7 64bit Access 2013 64bit
    Join Date
    Aug 2016
    Posts
    34
    Hi

    I tried to enter this but is showing up some syntax error
    fyi: my report name is rptsopsearchClick image for larger version. 

Name:	Capture111.PNG 
Views:	6 
Size:	4.2 KB 
ID:	25488

  4. #4
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,441
    no

    the >=1 goes in the CRITERIA line of your query driving the report not in the vba code.

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

Similar Threads

  1. Subform Data Entry Button - Search Button
    By thaBadfish in forum Forms
    Replies: 11
    Last Post: 06-23-2015, 03:14 PM
  2. Replies: 9
    Last Post: 03-31-2015, 04:13 PM
  3. Replies: 4
    Last Post: 02-12-2014, 12:49 PM
  4. Replies: 10
    Last Post: 03-21-2011, 02:46 PM
  5. Replies: 6
    Last Post: 02-09-2010, 07:53 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