Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Multiuser / Networking / November 2004

Tip: Looking for answers? Try searching our database.

Error 3734 when VBA changes command bar button caption

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul Baxter - 12 Nov 2004 19:36 GMT
An Access 2000 application uses VBA code to change the
caption on a custom command bar button.

As soon as this happens, any other user trying to open the
application gets a "Error 3734 The Database has been
placed in a state by user . . ." error message.

Does anyone know why this action (changing the command bar
button caption in code)has this effect, or how to prevent
it?
'69 Camaro - 13 Nov 2004 16:26 GMT
Hi, Paul.

A custom command bar is an Access-specific object, so its properties are
saved in the monolithic record with all the other database application
objects, such as forms and reports.  The user needs an exclusive lock on the
Access 2K (or later) database in order to make design changes, either
manually or through VBA code, to any of these Access-specific objects.  This
prevents database file corruption.

This feature was not available in Access 97 and earlier versions of Access,
so databases in a multiuser environment undergoing design changes to objects
like a form while another user was using that form often caused corruption.
This exclusive lock requirement in Jet 4.0 databases prevents the
corruption.

One can avoid this problem by splitting the database application into a
front end and a back end.  The back end, which contains the tables and
relationships, would reside on a shared network server.  A copy of the front
end, which contains all of the forms, queries, reports, macros, and modules,
would be placed on each user's workstation, with links to each of the tables
in the back end database file on the server.  Since each user would be
changing the command bar caption in a database file that no one else is
sharing, error #3734 would not occur.

For more information on split databases, please see the "Split the Database"
tip on this Web
page:

http://www.Access.QBuilt.com/html/gem_tips.html

One can also make the caption on the command bar's button permanent, and
this error will not occur whenever other users are also in the database,
since no design change would be made.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)

> An Access 2000 application uses VBA code to change the
> caption on a custom command bar button.
[quoted text clipped - 6 lines]
> button caption in code)has this effect, or how to prevent
> it?
Paul Baxter - 15 Nov 2004 13:18 GMT
Gunny-
Thanks for your reply - I like your handle "69 Camaro".  
Used to have one (Z-28 of course).

The database is already split.  The caption change
apparently affects the front-end only and so puts it into
exclusive mode.  

I'd been trying to use the appearance and caption of the
commandbar to signal to the users the presence and number
of items needing attention.  

The problem persists even with a permanent toolbar - just
changing the caption is enough to trigger the error.

>-----Original Message-----
>Hi, Paul.
[quoted text clipped - 53 lines]
>
>.
'69 Camaro - 15 Nov 2004 18:46 GMT
Hi, Paul.

> I like your handle "69 Camaro".
> Used to have one (Z-28 of course).

Thanks.  "Used to" is getting more and more common.  There are hardly _any_
of the best-looking cars on the road any more.  :-)

> The problem persists even with a permanent toolbar - just
> changing the caption is enough to trigger the error.

Yes.  The toolbar's design cannot be changed while any other users are in
the database.  Changing the caption on a toolbar button is "changing the
design," believe it or not.  This is not an issue when the database is
properly split:  the back end is on the server and every user has his own
copy of the front end on his workstation.  Sharing the same front end
database file across the network causes problems, which is why it's not
recommended.

> I'd been trying to use the appearance and caption of the
> commandbar to signal to the users the presence and number
> of items needing attention.

If you can't give each user a copy of his own front end, then perhaps a form
with an unbound text box displaying this number will be an alternative.
That wouldn't require a "major" design change to the form while multiple
users are in the database, so it shouldn't trigger the error.  ("Minor"
design changes while other users are in the database at the same time don't
trigger the error, but the minor design changes don't get saved, either.
And that's perfectly fine in your case.)

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)

> Gunny-
> Thanks for your reply - I like your handle "69 Camaro".
[quoted text clipped - 94 lines]
> >
> >.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.