473,471 Members | 4,637 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

"exclusively in use" problem

Struggling even more than usual here.
I've (nearly) written an XP application but have this problem where I
can't delete any records from the table my subform is based on. The
message I keep getting is "the table xxxxx is being used exclusively
by another user....blah blah". That's one problem, but the more
frustrating problem is; why can I close the Form and then successfully
run a Delete query but can't do these two steps in a macro?

Can anyone explain why this is so?
tia
Nov 12 '05 #1
1 1848
One way out would be to copy all the records from the table / query
referred to in the recordsource of the subform and deleting in that
copy and then changing the record source to the copied table/query.

The reason most probably is because your application's form navigation
is as follows:

1) You have a main form on which you click a button to open another
form on which this subform is.

2) When you open, you may have used the usual Access provided facility
of DoCmd.OpenObject "another-form-name"

3) Realise that control is still with the function which has opened
the form in step 2.

4) Till such time that that function does not relinquish control, you
will not be able to delete records from that table.

I encountered a similar problem as you have described. I am currently
developing the logic to overcome this problem in the way I have
described above.

Hope this helps.

Cheers!

Uttam

=====================
al************@yahoo.com (Alvey Sidecast) wrote in message news:<ed**************************@posting.google. com>...
Struggling even more than usual here.
I've (nearly) written an XP application but have this problem where I
can't delete any records from the table my subform is based on. The
message I keep getting is "the table xxxxx is being used exclusively
by another user....blah blah". That's one problem, but the more
frustrating problem is; why can I close the Form and then successfully
run a Delete query but can't do these two steps in a macro?

Can anyone explain why this is so?
tia

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Askari | last post by:
Yesterday, ALL code in python work and nothing when I close(finish) a code. Today, when I close, some raise this windows error : Instruction at "0x00FC3D70" use memory address "0x00000000". Can't...
2
by: Liang | last post by:
Hi, I use "defined $r_libs->{$name}" to check first if a key exists in a hash table. But Perl gives a warning WHENEVER the key exists: "Use of uninitialized value". Would u please help to...
1
by: Pete Mahoney | last post by:
Ok I use a textarea to store data input by the user, and then upon them clicking the submit button I store this data to a database. The problem is once the user inputs too much data (about 3...
40
by: Steve Juranich | last post by:
I know that this topic has the potential for blowing up in my face, but I can't help asking. I've been using Python since 1.5.1, so I'm not what you'd call a "n00b". I dutifully evangelize on the...
2
by: Bill N. | last post by:
Using VB .Net 2003 Standard Edition. This simple form has a "File in Use" problem while the executable is running. Created this simple program to make sure that I hadn't done something in my...
1
by: Shannon Rotz | last post by:
I have a database split into front-end, back-end, on a machine running Windows XP professional (no network, just a single machine). I just upgraded the database from Access 97 to Access 2000. The...
42
by: usenet | last post by:
I'm still confused about this and I can't find anywhere that explains it properly. I have the MS book "Access 2003" in front of me and I'm reading Part 5 about VB and so on. It's telling me...
30
by: Medvedev | last post by:
i see serveral source codes , and i found they almost only use "new" and "delete" keywords to make they object. Why should i do that , and as i know the object is going to be destroy by itself at...
3
by: Larry Leonard | last post by:
Running MSDE 2000 SP2 on Windows XP SP3. I have a T-SQL script that is relatively simple (adding constraints, inserting rows, etc.) and short (maybe 300 lines, heavily commented). It's an...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.