Oh, this sounds nasty. I don't recall the original thread, so I don't know
the reason why a Requery seems to be necessary. Are the subforms dependent
on one another? Are you editing the same or similar data different ways in
each subform? It is fundamentally a bad idea to have the same rows open for
editing in more than one place at a time in an Access application. When you
do this, it's easy to get "data has been updated by another user" error -
even though you're the only one in the application.
I don't have a clue why Access thinks the form *design* is changing. I
would have to see all the code behind the form to try to guess. Also, it
seems to be repeatable only with one user. Are you using security? Are the
users signed in with different IDs? Are you sharing this database on a
server - or does each user have a copy of the "code" database using linked
table to a shared mdb?
Note that there are lots of places in Access where saving a changed object
fails "silently" because Access realizes that the user doesn't have
ownership rights to the object. For example, changing the default printer
for a report will work, but Access won't save the change if the user isn't
the owner.
--
John Viescas, author
"Microsoft Office Access 2003 Inside Out"
"Running Microsoft Access 2000"
"SQL Queries for Mere Mortals"
http://www.viescas.com/
(Microsoft Access MVP since 1993)
http://www.deanforamerica.com/site/TR?pg=personal&fr_id=1090&px=1434411
Hi again John, Sorry for not being very clear in my
earlier posts. Let me try to answer all of your questions.
What is the record source of the form? – it has none. It
is a Tab Control type form with subforms embedded on each
Tab page. Each of the subforms has its own control source,
as mentioned earlier sometimes this is a Table, sometimes
a query. Those that are based on queries have a requery
set on them to refresh the subform each time its Tab is
clicked. I did this (with advise from this usergroup)
because previously the queries that supply some of the
Tabbed forms would only run when the Tab Control form was
first loaded. I need the users to be able to modify data
via one Tabbed form and for that modified data to
be ‘seen’ by other Tabbed forms. This does not happen
unless Requeries are provided.
I had an instance of the message appearing today and tried
to isolate the exact reason for its appearance without
conclusion. (The Tab Control form is called Tab Control
Master). The full message is “ ‘Tab Control Master’ has
been changed since the last time you opened it, either by
another user or because another instance of it was opened
on your machine. Do you wish to replace that you or
another user made? *To save your most recent changes and
discard the other users changes or your previous changes,
click Yes. *To save this version of the object with
another name, click No” Then there are Yes and No boxes.
The Yes box is always chosen and causes no problems.
When I went to the group using the database today, three
users had it loaded. Lets call them user A, B and C. All
three were doing a range of tasks but no design work. User
C closed down the Tab Control form and then access without
the error message. Same for user B. User C closes the Tab
Control form and the message appears. I answer Yes to the
message and load up the Tab Control form again. It loads
and opens at the first Tabs subform, as normal, whose
record source is a Table. I close the form without error
message appearing. I open it again and this time click on
one of the Tabs that causes a Requery to run. When the Tab
Control Form is closed up pops the message. I then try
this sequence repeatedly, and prove that the message only
appears when I close down the Tab Control form after
having clicked on a Tab that causes a Requery to run.
Success I think – but no. I fully close down access on
user A then load the database on user C and try this
sequence but cannot cause the message to appear. Then I
close down C and load on A again and cannot get the
message to appear there either! So the problem seems to be
repeatable and then its not. This seeming link to
requeries is why I mentioned them in the first place but I
really have no idea what causes this random problem.
As I said in an earlier post, I do not think my
potentially having more than one recordset open on the
same table is the problem here – the message seems to be
saying the design of the Tab Control Form is changing but
it is not. Again, thanks for your time. Any suggestions?
Cheers, Noel