Results 1 to 4 of 4
  1. #1
    caniread is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2015
    Posts
    86

    Query criteria from Combo box selection

    I want to filter by a combo box selection on a form that then generates the report from that query. I got almost everything to work except it asks for the parameter when I generate the report. If I type in the parameter it does generate the report. I am not sure what I am missing?


    Click image for larger version. 

Name:	Form selection.PNG 
Views:	10 
Size:	41.0 KB 
ID:	23291Click image for larger version. 

Name:	Query.PNG 
Views:	10 
Size:	16.2 KB 
ID:	23292

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,044
    Hi,
    this happens when the name of the form or form control is misspelled. Check the name of the combo box on the form and see if it matches with the expression.
    By the way, it is good practice to give all your objects on the form a correct name . Combo11 doesn't mean much. Better to name it cboArea or something like that. And it's easier to work with object names that don't contain spaces.

    Kind regards
    NG

  3. #3
    caniread is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2015
    Posts
    86
    Not the spelling. I think it for some reason isn't getting the combo box selection that I have selected from the drop down list.

    Quote Originally Posted by NoellaG View Post
    Hi,
    this happens when the name of the form or form control is misspelled. Check the name of the combo box on the form and see if it matches with the expression.
    By the way, it is good practice to give all your objects on the form a correct name . Combo11 doesn't mean much. Better to name it cboArea or something like that. And it's easier to work with object names that don't contain spaces.

    Kind regards
    NG

  4. #4
    caniread is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2015
    Posts
    86
    Made the row source a query instead of a table and that fixed it.

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

Similar Threads

  1. Replies: 7
    Last Post: 07-08-2015, 09:54 AM
  2. Replies: 3
    Last Post: 06-03-2015, 10:16 AM
  3. Replies: 5
    Last Post: 04-09-2014, 06:57 PM
  4. Query from a Combo Box Selection?
    By bkvisler in forum Queries
    Replies: 3
    Last Post: 09-04-2010, 06:11 PM
  5. Replies: 0
    Last Post: 02-09-2007, 09:20 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