Another way to determine all linked JET (.mdb) and Excel (.xls) files is to
create a new query and use the SQL (Structured Query Language) statement
shown below. To do this, create a new query. Dismiss the Add Table dialog
without adding any tables. In query design view, click on View > SQL View (or
click on the black SQL toolbar icon). You should see the word SELECT
highlighted. Delete this SQL keyword. Copy the SQL statement shown below and
paste it into the SQL view:
SELECT Left(Database,255) AS [Linked Databases],
Count(MsysObjects.Database) AS [Number of Tables]
FROM MsysObjects
WHERE (MsysObjects.Type)<>9
GROUP BY Left(Database,255)
HAVING Left(Database,255) Is Not Null;
Notes:
1. Grouping on the first 255 characters is required for Access 97, but not
later versions, since [Database] is a memo data type. (Contributed by Doug
Steele).
2. The criteria, WHERE (MsysObjects.Type)<>9, is used to filter out any
table constraints created with ADO. (Contributed by Dirk Goldgar).
You can now switch back to the more familiar design view, if you want to, by
clicking on View > Design View. Save the query and run it. When run from both
PC's, the results (recordset) should be identical.
Once you get this immediate problem solved, you may want to have a look at
the following article that I wrote:
Implementing a Successful Multiuser Access/JET Application
http://www.access.qbuilt.com/html/multiuser_applications.html
The second paragraph of this article includes a link that discusses the
benefits of splitting a database into a front-end (FE) and back-end (BE)
files.
Note: On the issue of not seeing records, have you ruled out that it is not
simply caused by a need to requery the form's recordset? An easy way to test
for this possibility is for one user to add or modify a record. The second
user likely will not see this change, until after they close and re-open the
form. If this is the solution to your issue, then you can add a command
button on the form, with some simple VBA code, to requery on demand.
Tom Wickerath
Microsoft Access MVP
http://www.access.qbuilt.com/html/expert_contributors.html
http://www.access.qbuilt.com/html/search.html
__________________________________________
Joan Wild said:
We are assuming you are using a split database. User1 has a frontend mdb on
their computer; User2 has a copy of the frontend on their computer. There
is a 'backend' mdb on a server that these two frontends are linked to.
It appears that the two frontends are not linked to the same backend. Go to
each computer and open a table in design view; go to View, Properties. Look
at the 'Description' property for the table. That will tell you the
location of the backend. Repeat on the other computer. I'll bet that they
are pointing to two different backends.