CursorType and Locktype

MUKESHY12390

Well-known Member
Joined
Sep 18, 2012
Messages
901
Office Version
  1. 2013
  2. 2011
  3. 2010
  4. 2007
Platform
  1. Windows
Hi Frnds,
I am creating oneUserFrom in Excel and my backend will be Ms Access.
multiple User will access this at same time for (update and Delete).
just I wanted what CursorType and Locktype I sould use.
 
no doubt the information you all have given is useful.

....but where is my answer:)

there will be only one TABLE.....I hope this is enough.
 
Upvote 0

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
In general use adOpenDynamic and adLockOptimistic or adLockPessimistic.

See here:
Database Cursors - Microsoft Access and ADO

and also:
http://www.functionx.com/vbaccess/Lesson26.htm

As you might guess, two users could open the same record at the same time with the optimistic locking, so if you have a likelihood that this will happen (multiple users who will be interested in the same data at the same time) then you would want to test that to see what happens and how to handle it, or consider using pessmistic locking instead. With pessimistic locking, the problem doesn't entirely go away - users might find it annoying if they are frequently locked out of records. So again, test and see what behavior you prefer. Depending on how users interact with the database, both might work equally well.

As noted previously, if the data is only for reading, you can use adOpenForwardOnly for faster performance.

It's been a while since I've dealt with this so take my answer with a grain of salt - but in general you can try one way and if there's problems try the other.
 
Last edited:
Upvote 0
this is what I was looking for ....thank you so much.:)
 
Upvote 0

Forum statistics

Threads
1,215,172
Messages
6,123,447
Members
449,100
Latest member
sktz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top