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 / June 2006

Tip: Looking for answers? Try searching our database.

Locking records in multiuser environments

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Salvador - 31 May 2006 23:58 GMT
Hi.
What is the recommended way to lock files/records for an Access 2003 DB in a
multi-user environment?

If you can refer me to any documentation and samples, it would be great.

Basically I want to correctly handle updates/queries to records in my
programs for
multiuser environment.

I'm using Visual Studio .Net 2003 Pro, Visual Basic and C#.

Thank you.
Larry Linson - 01 Jun 2006 06:12 GMT
One approach that I have found successful is to begin with the least
restrictive locking. If that does not prove satisfactory, move to a more
restrictive locking level.

 Larry Linson
 Microsoft Access MVP

> Hi.
> What is the recommended way to lock files/records for an Access 2003 DB in
[quoted text clipped - 10 lines]
>
> Thank you.
Salvador - 02 Jun 2006 06:16 GMT
Can you refer me some documentation, samples, etc?

Thank you

> One approach that I have found successful is to begin with the least
> restrictive locking. If that does not prove satisfactory, move to a more
[quoted text clipped - 17 lines]
> >
> > Thank you.
Larry Linson - 02 Jun 2006 06:51 GMT
> Can you refer me some documentation, samples, etc?

Access Help for the I/O Access Method you are using is a simple source. For
example, putting your cursor in the word OpenRecordset and pressing F1 in
either Access 2002 or 2003 will take you to the Help on the OpenRecordset
method, which will explain each of the arguments used in the OpenRecordset
method:

Set recordset = object.OpenRecordset (source, type, options, lockedits)

scrolling down will take you to the various built-in constants that may be
used in the lockedits argument.

Open a Form in design view. If the Property Sheet isn't open, right-click
the upper-leftmost little box and choose "Properties". Click the Data tab of
the Property Sheet, and you'll see one of the Properties on that page is
"Record Locks".

Include appropriate error handling code in the VBA module or the Form's
module.

In either case, choose the least restrictive level of locking. Use that
while you develop and test. When you subject your application to heavy user
testing, if you find that you have "collisions" very often, you may have to
increase the locking level to a more restrictive one.

I haven't had to do so, but I have not developed many heavily-used multiuser
applications; most of my work has been with either single-user databases, or
with Access clients to server databases, so you can't take it as a good
indicator of what level of locking you will end up using.

 Larry Linson
 Microsoft Access MVP
Salvador - 02 Jun 2006 07:24 GMT
Does it apply if I'm using Visual Studio .Net 2003 Pro and VB  and C# .Net?

I only use Access to build databases but all Select, Insert, Update and
Delete is made with VB or C#.

Don't you any have example for these programming languages?

Thanks

> > Can you refer me some documentation, samples, etc?
>
[quoted text clipped - 29 lines]
>   Larry Linson
>   Microsoft Access MVP
Larry Linson - 05 Jun 2006 03:42 GMT
> Does it apply if I'm using Visual Studio .Net
> 2003 Pro and VB  and C# .Net?
[quoted text clipped - 5 lines]
> Don't you any have example for these
> programming languages?

Access is the user interface and development tool; it is unfortunate that we
are "sloppy" in our terminology because you are using a Jet database engine
database. As I do not develop database applications in any DotNet language,
no, I do not have programming examples, and this is not the appropriate
newsgroup for them.

The Microsoft online interface to newsgroups can sometimes be confusing, but
if you continue scrolling down and looking, you will find sponsored
newsgroups on the DotNet languages, and most likely, some that are
specifically about database access using ADO.NET.

 Larry Linson
 Microsoft Access MVP
Salvador - 05 Jun 2006 16:34 GMT
Ok Larry. Thank you for your help

>  > Does it apply if I'm using Visual Studio .Net
>  > 2003 Pro and VB  and C# .Net?
[quoted text clipped - 19 lines]
>   Larry Linson
>   Microsoft Access MVP
 
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.