I can't be more specific if I don't know the set-up of your database.
Remember, I can't see your database.
My *guess* is that you implicitly referred to the CurrentRecord of the
Active Form. In that case, it may be more efficient as well as avoiding the
possible locking problem to change the value of the Comments Field by VBA
code rather than an Update Query.
For your information (if you want to persist with the Update Query), you can
use the reference to the Control on the Form as the Parameter for your
Query. For example, if you have a TextBox "txtSerialNumber" that is bound
to the Field "SerialNumber" of the Current Record on your Form, you can
refer to the TextBox in the criteria row. Something like:
Forms!YourForm!txtSerialNumber
When the Query is executed, Access will replace the above reference with the
value in the TextBox.
Perhaps, you need to check your Access book(s) on Parameter Queries and see
how Parameters are implemented.
--
HTH
Van T. Dinh
MVP (Access)
Kim said:
Great, but I don't know how to make the criteria row the value of the
current record. It'll be variable ... dependent on the record that the user
chooses to modify. Can you be more specific? How do I tell Access to apply
the change to the record that the user selected?