Auto Update MS Access fields

I am trying to update a MS Access table based on a table in a MS SQL Server:

Example: Persons 01 to 10 and Rooms A to J

The Table on the server gets updated periodically and I want my Access table to reflect that.

Example:  I have an Access table with Rooms A-J in a column, when Person 05  moves from Room A to Room E; I want my table to reflect that.

Is this possible?  If so, what is the easiest way?  Thanks.

Mos_DefinitelyAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

Andrew_WebsterCommented:
Either simply link your Access database to the SQL Server database so that you are actually looking at the SQL Server table, or link to the SQL Server table and run an UPDATE query periodically to update your Access table.

The best way to do the periodic update is to use the On_Timer event in a form that is always open in your Access application.  Set the Timer_Interval to a suitable amount (remember it's in milliseconds, so it might be a very large number).  In the event, add code something like:
DoCmd.RunSQL "UPDATE MyLocalTable SET Room = MySQLServerTable.Room WHERE MySQLServerTable.Person = MyLocalTable.Person"

Open in new window

or something like it.
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
Andrew_WebsterCommented:
Did that help any?
0
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 Applications

From novice to tech pro — start learning today.