Re: How do I set up a parameter query using a combo box in Access?



Is the form open with a legitimate value in the combo box? Are you sure the
combo box bound value is what you expect?

You can find out the actual value of the combo box by opening the debug
window (Press Ctrl+G) and enter:
?[Forms]![Form1]![Combo0]
Do you see the expected value when you press enter to get the value?

--
Duane Hookom
MS Access MVP
--

"Ryan" <Ryan@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:FDA33631-9053-4DB7-B83E-9C4A9E7AE27A@xxxxxxxxxxxxxxxx
> How do I use the value in a combo or list box limit a query or report
> query?
> I have tried two options with no success. They are as follows:
>
> Option 1: Set up a query with the criteria pointing to the combo or list
> box
> value. The criteria reads =[Forms]![Form1]![Combo0]
> Option 2: Set up a macro opening a report with the "Where" condition set
> to
> limit the result by the combo or list box value. The "Where" condition
> reads
> [HouseAddress]=[Forms]![Form1]![Combo0]
>
> Each time the report/query comes back blank.


.



Relevant Pages

  • Re: Report/Query not selecting specific records
    ... My query criteria is as follows: ... I am using legitimate date values. ... button sets the form's visible property to false and opens the report. ...
    (microsoft.public.access.forms)
  • Re: Populating a list -- table structure?
    ... I had made a report already and figured out about adding the ... your responce below, but thanks to your help with SQL, I was able to get the ... It takes a summary from a select query and gives the ... KitID, long integer ...
    (microsoft.public.access.forms)
  • Re: Fields in Label dont give correct information
    ... You need to create a query based on tblRegEvent and tblRegPayment. ... -If your DCountis to count values in your report, ... half the time with very few errors (other than that label problem I had.) ... For example in the Room assignment on the report an idividual will be ...
    (microsoft.public.access.reports)
  • Re: Tips on domain aggregate replacements
    ... This already is a split db, but the users are 400 miles away from the server hosting the data:) They are all running the same copy of the FE locally on a single terminal server via TS/RDP sessions. ... It doesn't seem to have much impact on performance; the report takes just about as long to run if they are all logged in as it does when I am logged on testing it at night. ... I would do DSums from the controls on the report on the data returned by the query. ... The biggest offender is a certain report that needs to Sum a particular complex total for each of the next twelve months (the DSum in VBA was a sideline to this issue) and present these as items on each line of output. ...
    (microsoft.public.access.modulesdaovba)
  • Re: using a form with combo box to input criteria
    ... Candia Computer Consulting - Candia NH ... When you removed the criteria, ... Then your criteria in the query would be... ... query behind your main report. ...
    (microsoft.public.access.forms)