Hi Steve.
I am taking mulitple fields from one table (records entered by a form) and
through an update query that concantenates the data into two fields (one
English, one French), stores that data in a second table. The reason for
this is to eliminate time and data entry errors. My client will be entering
url data in the form. Some of the entries could be long, especially the
French, lots of room for error.
There are static fields that dont change, so the form is set up with default
values that the user doesnt see. The final output, after running through the
update query, is a string of html that a web coder can just grab from the
second table and paste into a web document.
I wanted the second table to update automatically (through the update query)
because I don't want the client accessing that query. That is why I was
afraid to use an OpenQuery macro.
Does this make sense now? Hopefully it can be done.
thanks
Pat
Steve Schapel said:
Pat,
I think you could just make an Update Query to do what you want, and
then add an OpenQuery action to the macro on your 'Save' button to
runthe update. I think you would have a Criteria in the primary key
field of the table that points to the current record on the form, using
syntax like...
[Forms]![NameOfForm]![YourID]
Just curious, Pat... This is a very unusual thing to do. You have just
entered a new record, and then you immediately want to update it? Can
you say what this is all about?
--
Steve Schapel, Microsoft Access MVP
Pat wrote:
I would like to run an update query immediately after entering a record via a
form. The form has a 'save' button.
How can I create a macro to run the update query when I save the record entry?
thanks
Pat