Access Best practise for updating linked table in ms sql server

There is an access db that has a table called [range1]. There is an identical table [range2] in sql server as well.
I set up the sql server as a linked odbc in my access.
 I have a query that clears linked range2 table and copies all data from the [access] range1 table into that odbc linked table [range2].
How do I set up an trigger event so that anytime the table is updated or the database is closed, that macro runs to update sql server range 2 from range1 access table. For example – is an on close event for access application? That I can use here? Or any best practice that you gurus yourself use?

Thanks
RayneAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

chaauCommented:
So, it is not a linked table. It is an imported table. What you should do is to create a linked table in Access. Then all the changes made in Access will be ulimately done agains the SQL server table.
To do this do the following. Rename your Access range1 table to range3 (as a backup). Open MS Access External Data->ODBC dialog and select the option to "link". Locate your range2 table in the SQL database. When access creates the link the table will have a globe icon. Its name will most like be [dbo_range2]. Select it and press <F2> to rename. Rename it to range1. Now you have a proper linked table. When you modify a record in this table the modification will be against the SQL server range2 table.
0
Gustav BrockCIOCommented:
You could have a form open - hidden if you have no purpose for it.

In the OnUnload event of this, call an update query that copies from your local Range1 to your linked Range2 table.

/gustav
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.