Connecting Tech Pros Worldwide Help | Site Map

Change a query field with a parameter?

  #1  
Old November 20th, 2008, 06:15 PM
cwoll
Guest
 
Posts: n/a
I have a table with 5 different fields.
ID
Field Name = This field refers to land not a field in access.
2007 Crop
2008 Crop
2009 Crop

I now have a query that just gives me "Field Name" and "2009 Crop" and
I want to have a form with a combo box so that I can change the query
to select ether "2007 Crop", "2008 Crop" or "2009 Crop"

Is it possible to with a combo box change my query?
Thanks
Clarence
  #2  
Old November 20th, 2008, 06:55 PM
Patrick A
Guest
 
Posts: n/a

re: Change a query field with a parameter?


Clarence,

Allen Browne has some GREAT code to do this for a report, plus a very
nice explanation of how everything works here:

http://allenbrowne.com/ser-50.html


I just used it yesterday, and it's sweet.

You could modify it easily to run a query instead of a report.

Thanks Alan!

Patrick
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Link two dropdowns so the second dropdown can use sql query zion4ever answers 4 August 13th, 2008 01:31 AM
Can I pass a filter to an update query via vba Don Seckler answers 5 November 12th, 2005 10:38 PM
Can I pass a filter to an update query via vba Don Seckler answers 5 November 12th, 2005 10:12 PM
delete records using querydef with parameter deletes ALL records hpi answers 5 November 12th, 2005 07:39 PM