How can I run an update of a table from a command button. I know I can run a query but I want to pass parameters to the query. how can I put the query code into the command button? Like:
I have a table named "Clients" with a field named 'field11' and I want to put the contents of a the text box 'text100' into all records with an ID larger than 1651.
I tried the following in a command button but got an error.
UPDATE Clients SET field11 = me.text100.value
WHERE [ID]>1651;
What is the correct code?
Thanks
I have a table named "Clients" with a field named 'field11' and I want to put the contents of a the text box 'text100' into all records with an ID larger than 1651.
I tried the following in a command button but got an error.
UPDATE Clients SET field11 = me.text100.value
WHERE [ID]>1651;
What is the correct code?
Thanks