Results 1 to 3 of 3
  1. #1
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232

    Combo Box On Rport to Filter

    I have a report that is generated from a query. It filters the report by “date” that I have to type in each time I run the report. I would like to place a combo box on thereport so that you could select a month “January” “February” so forth. The dateis entered as 7/1/2016 not by July, 1, 2016. So the combo box would have toconvert the month from number to text and then filter by month that youchoose. Thanks Angie

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    you put the combo box on a form, select the month in a combo box and open the report based on that.
    in the combo afterupdate event , add some code to fill in the start and end date text boxes.

    txtStartDate = cboMonth & "/1/" & txtYear
    txtEndDate = dateAdd("d",-1,dateAdd("m",1,txtStartDate))


    then the query is:
    select * from table where [DateIs] = between forms!frmRpts!txtSTart and forms!frmRpts!txtEnd

  3. #3
    angie is offline Competent Performer
    Windows 8 Access 2013
    Join Date
    Dec 2013
    Posts
    232
    Where do I enter the Code?
    I do not understand what you want me to do after making a form and adding a combo box.

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

Similar Threads

  1. Replies: 1
    Last Post: 02-28-2016, 04:14 AM
  2. Replies: 11
    Last Post: 09-03-2015, 11:12 AM
  3. Replies: 4
    Last Post: 06-18-2014, 08:31 PM
  4. Replies: 1
    Last Post: 10-01-2013, 09:25 PM
  5. Combo Box filter – help!
    By catat in forum Forms
    Replies: 1
    Last Post: 08-24-2010, 04:15 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