Table Lock - Run-time Error 3211 ????

Aug 1, 2005

I have a form with a combo box that contains a list of customers. Select a customer from the combo box and the form fields populate with general customer info. The form has a subform on it with a combo box where you can select products. Select a product from the combo box and the subform populates with customer-specific product info.
If I open the main form and select a customer, then without doing anything else I select another customer, everything works ok. It’s when I select a product on the subform, and then try to select a different customer on the main form that I get “Run-time error 3211: The database engine could not lock table tblCustomer because it is in use by another person or process.”
Can anybody shed some light on this? I’ve been confounded by it for days.

View Replies


ADVERTISEMENT

Modules & VBA :: Error 3211 - The Database Engine Could Not Lock Table XXXX

Oct 20, 2014

I have a DB with multiple import processes to take in information and populate various tables. This has been in place for some time and works with no issue.

The import process involves the creation of a local staging table, to which I import the received data, normalise it according to my own table structure, remove any duplication (i.e. same data imported repeatedly) and append the cleansed data to the main tables.

I've just added a validation step to check for data integrity. In other words, for duplicate data, rather than simply purge it as I was doing previously, I now check to see if the data has changed in any way and prompt the user if necessary (with the option to either ignore the change or update the existing record)

However, since I added this extra step, I am getting the following error message during my import process :

Error 3211 : The database engine could not lock table 'tblStaging' because it is already in use by another person or process

It only appears a) when a data change is detected and b) when the option to update is chosen, and seems to occur after the update has taken place (i.e. I can see the records suitably updated)

But I can't replicate the error while debugging so it seems to be a run-time issue. It's definitely not another user as the staging table is deliberately local (specific to that user's front-end)

I suspect I can probably solve the problem by adding some kind of DoEvents call or brief pause somewhere but the problem is, I don't know where the problem is occuring, so I don't know where to add the line? Or if that would even solve the problem at all?

Is there an easy function I can call to check if the staging table is locked? Which I could then use to debug and identify exactly where the lock is causing a problem? Or even apply the DoEvents to release the lock? (It must eventually get released as if I step through the code, I don't get the error?)

View 5 Replies View Related

Forms :: Opening A Report - Error 3211 / Database Engine Could Not Lock Table

Jul 25, 2013

I have a form that contains a subform. The subform is a datasheet which calls the results of a query of 4 tables (tbl_companies, tbl_deals, tbl_products, tbl_vl).

In the main form there is a button which opens a report with a historical record of dates of value changes of each product up to a chosen date. This chosen date is determined by inputting a date into a text box.

This report also sources (tbl_companies, tbl_deals, tbl_products, tbl_vl).

When I try to open the report, I get the run-time error "3211".

'The database engine could not lock the table "Tbl_companies" because its already in use by another person or process.'

I'm guessing that because the query for the subform is already calling the table, the query for the report can't call the table at the same time?

View 3 Replies View Related

VB Run-time Error 3211

Jul 11, 2005

I have 3 combo boxes on my form and I am trying to update the second by the choice made on the first. I have a query for each box that when a selection is made it makes a table of information I use in the next box, and after I select something from the first box I get this error, but it does populate the second list. Any help would be really appreciated. Thanks.

Bobby

View 1 Replies View Related

Error 3211

Dec 5, 2007

Hello everyone,


I have written some code that will add some entries to a table:

Set myTable1 = db.TableDefs("Weekly_Card")
Set rst1 = myTable1.OpenRecordset(dbOpenDynaset, dbOptimistic)

While i < arrayCounter
With rst1
.AddNew
![ProjectID] = projectNames(i)
![MemberID] = usrName
![WeekNo] = noWeek
.Update
End With
i = i + 1
Wend

The problem is that when i am trying to execute this code a form is already open that is bound to the table and so i get the followng error:

"3211" Runtime error
"The Database engine could not lock table "Weekly Card" because its already in use by another person or process"

Now my questions are:
Is there a way to access the table and add data to it whilst it is being used ?
Is there a way around this problem?

I am using Microsoft Office access 2003.
Thanks in advance

--Stav.

View 6 Replies View Related

Database Engine Could Not Lock Table .... Etc Error Message

Feb 14, 2006

I have a live db running on a VPN network (FE/BE both centrally located on a main server , users 'view' their own personal front end through the VPN tunnel) ) and have recently provided a new updateto the FE. Until this time , most users were problem free but one persisted in getting the above error message. Now the new update is in place , they all get it, and this is when no one else is using the db and a single user logs in and tries to use the system. I guess it must be an internal fault ( ie my fault ) but then why does it work for some and not for others?. It also works no problem on my system at home. The user runs Access 2000 and the db was developed in 2003 ( default file format 2000)
Any help most appreciated
Thanks in advance.

View 1 Replies View Related

Error: Could Not Update; Currently Lock By User

Jan 17, 2008

Hi All,

I am running a access db within a company with about 40 users. I have split the db for multiple users. The only way I have found to fix this problem is to ask the user to close it and reopen it but this is just a quick fix.

Is this cause by our Microsoft servers or is it cause by access. Any help would be great :D

Here is the complet error msg

Could not update; currently locked by user "Admin" on machine 'XXXXXX'

please note that the user is not logged on as "Admin" but as normally user without admin rights.

Thanks in advance.

Chezney

View 3 Replies View Related

Lock And Un Lock A Text Field Through A CMD Button

Jun 13, 2005

I need to lock and unlock a a few text fields with a CMd Button.

and i do know about the allowedits thing, but i only need to apply this to a few fields on my form.

can some one throw me a clue?

View 2 Replies View Related

Lock Table

Nov 5, 2005

I want to lock a table to disallow further records.
I want to have only one record (I would have created this rec by myself) to store initial conditions and infos such Username/company etc.
Any ideas?
I'm also interesting in other solutions than locking a table if sucj a thing is not possible or nt functional.

Tnx in advance

View 3 Replies View Related

Lock A Table

Apr 12, 2007

I'm working on a database that calls on a table of zipcodes. All of these zipcodes have latitudes and longitudes connected to them..... I've searched around but cant seem to find anything on locking a table. Is it possible to lock down a table so changes cannot be made?.....(until I need to make them)

View 1 Replies View Related

Lock Table

Jan 26, 2005

Is there a way to lock a table from recieving changes that are made in other tables?

Liz

View 1 Replies View Related

LOCK TABLE In Access Db

Nov 12, 2007

I'd like a code to lock a table in my access database so that it can not be mistakingly deleted by the user.
It's a very basic database program i am using for basic reporting purpose. I'd like to lock the master table from the user. How can i achieve this? Any ideas?

View 3 Replies View Related

Relationships: Can't Lock A Table...

Sep 17, 2006

I am trying to define a relationship between tables. The relationship is one-to-many with forcing referential integrity. When I try to define it, I get the dabaase engine error:

"The database engine couldn't lock the table, because it is already in use by another person or process"

I am sure that the database is not opened by anyone else, it is 100% local, no other instance of Access is running, and there was no *.ldb file... What can be the problem?

View 1 Replies View Related

Lock A Table For Editing The Records

May 22, 2007

Hello all,

I have a question, I'm building a MS ACCESS database and within it i have a table for putting in my program critical parameters. I don't want anyone to change the content of that table. That means not editing the 1 record in it and not adding a new record. Within the program is't a problem but if you make an other blanc database you can import the table, change it and export it back into the program (i know it is far looking but it happens).

How can i lock a table so it cannot change or it cannot be exported or imported???

View 2 Replies View Related

Lock Specific Records In Table

Jul 18, 2007

Is there anyway to lock specific records in a table so users cannot edit them after a manager has approved them?

View 7 Replies View Related

General :: Lock A Table In MS Access?

Aug 29, 2014

Is it possible to lock a table/macros/forms/reports in MS Access?

View 3 Replies View Related

Lock Table Or Configure As View Only

Mar 15, 2012

Is there a simple way that I can lock a table or better yet configure it as view only. The table is used to populate a combo box in an entry form, and I do not want anyone to have the ability to add records to the table (options in the entry form), but I would like them to be able to view the table. I don't need a robust solution with passwords. I would imagine there is a simple preference to set, I am just not seeing it.

View 1 Replies View Related

Forms :: Database Engine Could Not Lock Table

Jun 23, 2015

I am having a problem running a make table query which is based on the same tables that I am using in a sub form.

Basically, the user selects certain records in the subform (which is in datasheet mode) using a check box, then once selected he hits a command button where there is some code that will run the make table query, which I use to filter other tables in a related reports.

However I keep getting this silly "database engine could not lock table" message relating to the sub form name. The subform is not linked to any records in the main form as the main form is unbound.

The solutions offered by putting DoEvents or Me.refresh/Me.requrey in the code do not work.

View 7 Replies View Related

General :: Lock Date In Table And Query

Feb 11, 2014

I have a field that generates a date from when the first input is put into another field.

I know and can lock the "date" field in the form but is it possible to lock that date in the table and query?

View 1 Replies View Related

"Could Not Lock File" Error

Aug 23, 2006

My company has a network with an Access application front end and an Oracle back end. The back end is read only. The folder in which the Access application resides is shared with other departments who have been concerned about people who use our application having any contact with their applications, whatever they may be. Everyone who used the Access application has had Full Control rights on the old folder.

Our application was moved to another folder which is in another folder to which no one has access. To get to it, the complete path must be typed in; the browser can't be used because the forbidden folder can't be opened.

Only a few users need Write access to the application. Everyone else has been given Read Only access to the folder in which the application resides.

We are now finding that when the second person tries to access the application in its new location (it was deleted from the old location), they get the "Could Not Lock File" error message and the applicattion won't open. The Access application has no security on it at all-everyone has full rights to do anything they want in it. At corporate's insistance, the only controls on who can do what are the permissions that are associated with the folder.

We are having a few of them apply for Read Write access to the folder to see if this solves the problem but it will be a few days before anyone gets the permissions changed.

In the meantime, does anyone have any idea if this is the problme or could it be something else? By the way, this only started happening in the last day or two but people have been requesting permission to the new location for about a month.

View 2 Replies View Related

Modules & VBA :: Ms Access Lock Table While Inserting Data

Oct 31, 2014

In a Access 2003 database, I have an "Inscriptions" (subscription) database with a primary key on 2 fields idPersonnel (employee) and idSession. I have made a form so that user can select a session (in a listbox), then one or more employee (another listbox) and suscribe them to that session by using a button, which, on VBA side, first check that there is enough room on the session (defined by "MaxParticipants" field on "Sessions" table, linked to "Inscriptions" table on idSession), then insert data in "Inscriptions" table

This is working fine in a single-user environnement, but fails if 2 people want to join some employees on the same session at the same time, as I have a confirmation message between check and insertion. Therefore 2 users can select employees, get the confirmation message (at this point both are told there is enough room), resulting in having more people than expected joined to the session. Fortuneatly, if both users try to insert the same employee(s) to that table, one will get a duplicate error, but insertion will be made if employees are different.

On another DB engine, such as SQL server, I would use a stored procedure that would lock the table, do the check and the insertion then unlock the table.

But it does not seem to be possible in MS Access. What are the possibilities in MS Access to prevent a session from having more than maximum number of participants ?

View 1 Replies View Related

List Box Causing Database Engine Could Not Lock Table

Jul 12, 2014

I've added a list box to my form that displays a table. This table is completely independent and gains it's data from an Append query. There is also a Delete query, which clears the table for a new set of data, and an Alter query which resets an AutoNumber column in the table (so that new data sets always start numbered at 1).

Here's the problem: Since I've added the listbox and set the RowSource to the table, whenever I run the Append query I receive the error: "The database engine could not lock table 'tblLineSheet' because it is already in use by another person or process." I've made sure to close the table, but to no avail I still get this error. Without the List Box I don't encounter this error.

View 2 Replies View Related

Modules & VBA :: How To Lock A Table - Stop User Adding Or Altering Records

Sep 19, 2013

I have a form that allows a user to complete a stock take. I would like to stop other users from receiving or despatching stock while a stock take is in progress.

Is there a way I can lock a table, or stop users adding or altering records that match certain criteria. i.e. don't let users receive or despatch stock from with a locationID of 'A'.

View 4 Replies View Related

Tables :: Lock Single Record In A Table To Be Read Only On Permanent Basis

Dec 29, 2014

I want to "lock" a record in a table so that it is read only and cannot be accessed/edited/deleted. Is it possible to lock a single record in this way on a permanent basis? It's actually the first record in the table.

View 5 Replies View Related

Run-time Error 13 Ctl.tag

Apr 17, 2006

I have this:

Private Sub GetTotal()

Dim ctl As Control, intScore As Integer

For Each ctl In Me.Controls
If ctl.ControlType = acCheckBox Then
If ctl = True Then
intScore = intScore + ctl.Tag
End If
End If
Next

Me.Points = intScore + Nz(Me.extra_points)

End Sub

which should and does take the tag element of a check box and add or subtract from intScore.

However upon making the form tabular it doesn't work...

any help here?

View 2 Replies View Related

Run Time Error '6'

Jul 14, 2005

run time error '6'
Overflow

what is it????

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved