How do I create an update query in Access 2000 where the update is based on a value in a text field?
What I am getting at is this: I have a table containing a field called mco_year. On my form, I have a text box that the user enters a year and the year is checked for a field range. How do I use this value (txtYear.value) in an update query? I tried using me!txtYear.value in the update query's update to and/or criteria boxes. Everytime I run the query from my form (using the DoCmd openquery), I get a box asking for a value, and not from my text box.
I'm so confused!
What I am getting at is this: I have a table containing a field called mco_year. On my form, I have a text box that the user enters a year and the year is checked for a field range. How do I use this value (txtYear.value) in an update query? I tried using me!txtYear.value in the update query's update to and/or criteria boxes. Everytime I run the query from my form (using the DoCmd openquery), I get a box asking for a value, and not from my text box.
I'm so confused!