473,396 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Records are Locked

Alireza355
I have developed an accounting database, with a lot of tables, forms, queries, reports, etc.

I have a form, which collects some information from the user, runs lots of queries, updates, etc in the main table of information, and fills another table by the selected records after deleting everything in this new table. The records in the table are then shown in a subform within another form.

My problem is that when a user is inside the second form, actually seeing the records in the newly filled table, other users on my local network can not do the same thing, because access gives an error, saying someone else already is using that particular table in exclusive mode (or something like that)...

The subform does not allow any edits or deletions.

Is there anything I can do so that different users can have access to that table at the same time?
Mar 7 '09 #1
4 1367
DonRayner
489 Expert 256MB
Hello Alireza;

This is what I'm getting from your post.

1. User opens form 1 and enters some data.
2. User initiates VBA code to run queries and open form 2
3. Queries use data from form ???1 to create or update a table
4. Form 2 opens and within it is a subform with the data from the new table.

Let me know if I'm correct in my assumptions and could you answer these questions for me.

What exactly do you mean by?
and fills another table by the selected records after deleting everything in this new table.
Is the new table being created or updated?
Is your database split into a frontend and backend?
Are you using Access built in security?
Are you using optimistic or pessimistic record locking?

Don Rayner
Mar 8 '09 #2
Dear Don,

Thank you for your time.

Let me explain what is happening in my accounting project.

The user first enters RAW (uncalculated, mixed) data in the main table of information (Table1 for example) using a form (Form1 or MainForm for example). This is a huge table with a lot of fields (Table1).

Now, it is time for the user to select what accounts he wants to look at, and opens a form (Form2 or frmSELECT for example) to specify what he wants. He fills some comboboxes, and there is a command button in this form, that runs tens of queries, including delete queries which first delete all the previous information in Table2 (somehow a temporary table), then other queries run to make a lot of calculations, updates, sortings, groupings and so forth.

So until now, the purified information are appended to table2 from Table1. Now it is time for another form (frmFINAL for example) to show the contents of table2 in a subform, so that the user can see and if he wishes, print a report by a command button in this form.

Now, the point is, that if another user in my office network wants to look at his own desired information by opening the frmSELECT and clicking on the said command button, he gets an error message, indicating that another user has the same table or recordset open. This is perhaps because the information in Table2, are already been looked at in the subform of frmFINAL of the first user's computer screen.

The information in Table2 will or should, according to my consumptions, be now deleted, and filled up by the results of the queries that the second user initiates. but microsoft access prevents this by some sort of "Lock"ing.

Is there anything that can be done, so that the information shown in the subform of frmFINAL are threated as a clone of what was in Table2 at the time frmFINAL was opened? so that if other users try to delete all the information in Table2 and fill it with their own information and see it in their own frmFINAL, nothing prevents this?

I hope I could make myself undrestood.

Thanx a lot.
Alireza355
Mar 8 '09 #3
DonRayner
489 Expert 256MB
Your best bet would be to split your database into a front-end(fe) and back-end(be). Have your forms, queries, reports, modules and Table2 in the fe and the remainder of your tables in the be.

Leave the be on your server and install a copy of the fe on each workstation that will need access to your database.

Access has a tool for splitting your database into fe and be. It is located at Tools-Database Utilities-Database Splitter. Make sure to backup your database before running the utility.

See This Post by NeoPa for further information on splitting a database.
Mar 9 '09 #4
Dear Don,

Thank you for your kind help.

I will check to see how to split the database.

Will ask you if any help needed.

Thank you so much.
Mar 9 '09 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Ryan | last post by:
I have an SP which I use to insert into a table data from another. For example... INSERT INTO myWorkTable (Field1, Field2) SELECT myField1, myField2 FROM
2
by: Ben | last post by:
I have looked around for this but I seem to be missing something. I have a forum based on a query that brings display some table info in tabular form. What I would like to do is prevent the user...
0
by: jimmojelsky | last post by:
Access97 database - it is set up to share between several computers - some users have full access, others only have read access - locking is set at "no lock" - everything works unless one of the...
1
by: David Kevorsky | last post by:
Hello, On one of the forms of an in-house Access application (developer unavailable), user input is notaccepted on the textbox controls of the form. Note that none of the suggestions in the...
2
by: sonta | last post by:
Hi. Awhile back I got some useful advice in locking records using tick boxes. Eg a field called 'Locked' was used to tick (yes/no format) any record in the datasheet view. But I would like to...
3
by: Joe | last post by:
Hi there, question regarding Access 2000 - locking records: I want to be able to lock a record (or several records) on a form so that particular record can not be edited until I undo the lock (im...
6
by: MS | last post by:
Access 97 here. I want a simple way to "lock" certain records on a form. Some records remain "live" until all data is available which happens over time. When all the fields are complete, I want...
6
by: jmartmem | last post by:
Greetings, I have an Access 2002 continuous form called "Project Update Form" in which users can update project values presented in a series of combo boxes and text boxes. Three of the combo...
1
WyvsEyeView
by: WyvsEyeView | last post by:
I have a dataset subform on which I want to lock a field for just two specific records. Each record has a type_id and a desc field. I want to test the value of the type_id field for the current...
6
jinalpatel
by: jinalpatel | last post by:
I am using following code for searching records. 'Purpose: Build up the criteria string form the non-blank search boxes, and apply to the form's Filter. 'Notes: 1. We tack " AND " on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.