Refering to a control on a form from a query

M

Martin Jackson

Please help! I want to create an update query to run from a command button
on a form to change all the address fields in the table the form is based
on. How do I refer to a particular control on the current form in the query?
I have been trying [Forms]![nameofform]![nameofcontrol] in the updateto
field of the query and setting the criteria as
[Forms]![nameofform]![customer's national insurance number]. The table has
duplicate customer details and by changing one address on one record, I want
it to update all the others in the table.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top