Results 1 to 10 of 10
  1. #1
    chuki2 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2011
    Location
    Selangor,Malaysia
    Posts
    26

    Filter month on report using combo box from form

    Hello all....Im new here...



    I have create accounting form,the problem right now is Report can`t filter using combo box..

    So how i can figured out?

  2. #2
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    What is the record source for your report? It should be a query. Have the query criteria for month field be driven by your combo box.

    You will need something like this in your criteria

    =Forms!YourFormName.YourComboBoxName

  3. #3
    chuki2 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2011
    Location
    Selangor,Malaysia
    Posts
    26
    Hye...thanks for reply...

    Yeah....my report soucre come from table....Is called tblAcc

    So i need to create query?how i can link query to report?

  4. #4
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    With your report open in design view, click on the properties for the report. Go to Data Tab and change the record source to the query. Now do the same for each of the fields in your report so that the data is coming from the (filtered) query and not the table.

    Alan

  5. #5
    chuki2 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2011
    Location
    Selangor,Malaysia
    Posts
    26
    Owh i see....that means,i need create a query from table right?

    How about combo box?how i can make start from January 2011,February 2011 depends on record?

    Thanks for reply....

  6. #6
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529

  7. #7
    chuki2 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2011
    Location
    Selangor,Malaysia
    Posts
    26
    Hello mrs alan....

    I can`t filter the query using combo box...i have follow the toturial but i got same problem...

    query filter can apply on date?

    I want to filter month and year only....

    If need use date part,how to apply it?

    Thanks for help mr allan....

  8. #8
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2007
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    You are not giving enough details for an explicit answer. Perhaps if you posted your db with sample data. Then using your db, ask specific questions. And post what your expected results are. Currently, we are dealing with generalities.

  9. #9
    chuki2 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Nov 2011
    Location
    Selangor,Malaysia
    Posts
    26
    Ok im sorry....

    Hehe,i can make it....successfuly...

    Thanks alot friends...

  10. #10
    mk118 is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2011
    Posts
    1

    problem is solved

    Quote Originally Posted by alansidman View Post
    What is the record source for your report? It should be a query. Have the query criteria for month field be driven by your combo box.

    You will need something like this in your criteria

    =Forms!YourFormName.YourComboBoxName

    tanks
    very tanks


    for combo12 in criteria on query
    [forms]![tbl1].[combo12]
    for date in criteria on query
    >=[forms]![tbl1].[text18] And <=[forms]![tbl1].[text20]

    problem is solved
    very tanks

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

Similar Threads

  1. Replies: 2
    Last Post: 04-17-2012, 12:56 PM
  2. Filter A Form With Combo Box
    By JeffG3209 in forum Forms
    Replies: 15
    Last Post: 05-27-2011, 09:04 PM
  3. using unbound combo box to filter report
    By jlclark4 in forum Reports
    Replies: 1
    Last Post: 01-25-2011, 04:12 PM
  4. Filter my form from combo box
    By Angate in forum Forms
    Replies: 3
    Last Post: 04-24-2010, 01:57 PM
  5. filter form based on combo box
    By lloyddobler in forum Forms
    Replies: 8
    Last Post: 09-10-2009, 07:33 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