Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update description of Chart in Form?

Status
Not open for further replies.

BMeek

Programmer
Sep 18, 2000
70
US
I have a chart displaying the top 10 results on a form with users providing the input for a specific city. The form is based on a query that does not filter by City. I use a "Select" query to filter the data that the user types. My trouble is the [City] value in the original query is not being updated to the value typed in by the user. If I filter the query initially, Access requires the user to type in the value again after running the query before it builds the chart. I don't want to make the user type the city name more than once, plus if the user doesn't type it in exactly the same way twice, the results are skewed. How can I save the value the user types into the parameter box and display it as a header for my chart?

BMeek [sig]<p>Bryan Meek<br><a href=mailto:bmeek@pacbell.net>bmeek@pacbell.net</a><br><a href= Enterprises - Personal Technology Consultant</a><br>A TC in your corner gives you the personal attention you need to find the right technology solutions for your business.[/sig]
 
First, with respect to the city. In an effort to eliminate the need for the user to be correct in the typing, how about using a combo box that has its rowsource set to the available citys in alpha a-z order. Then all the user has to do is type some of the city first letters and the rest is provided by access. The second part of the problem is saving the value. Is the user filling in the parameter imput box for the query? And if they are, try to point the query criteria to the field on the form instead of using the parameter prompt. If this is not making any sense let me know. I may not have fully understood the question or your setup. [sig]<p>John A. Gilman<br><a href=mailto:gms@uslink.net>gms@uslink.net</a><br>[/sig]
 
Thanks John,
I had discussed this possible solution with a friend, but wanted to know if there was some easy thing I was over-looking. I added a combobox and that handled the issue. Thanks again for confirming my next step.


[sig]<p>Bryan Meek<br><a href=mailto:bmeek@pacbell.net>bmeek@pacbell.net</a><br><a href= Enterprises - Personal Technology Consultant</a><br>A TC in your corner gives you the personal attention you need to find the right technology solutions for your business.[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top