Question : Linking from excel to Access and then back to excel

Hello Experts,

I have a big problem that I am hoping you can help me with.

I have several workbooks in Excel that are linked in to Access where I have puled them to gether in an SQL query. Every time one of the users changes something in his workbook it also changes in Access.

Now these workbooks all contain the same information so I need each workbook to change every time one changes ( that is if someone makes a change in workbook 1 the query in Access changes and so do all the other workbooks)

Is there a way to do this?

Answer : Linking from excel to Access and then back to excel

unless the contents would shrink, which is doubtful since you didn't indicate the users could delete data, you only need to do one of the following:
1. push the data from Access
* invoke a query that deletes the rows in the attached worksheet
* invoke a query that copies the Access table into the attached worksheet
(repeat this for each user's workbook)

2. pull the data into Excel
* instantiate a recordset object, pointing to the Access table
* instantiate a range variable to point to Sheet2!A1
* invoke the range's CopyFromRecordset method, passing the recordset variable.
Random Solutions  
 
programming4us programming4us