473,396 Members | 1,748 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.

Deleted records in query don't delete from table

topher23
234 Expert 100+
I have a query that isn't working as expected.

The query links to one table used for data entry and has outer joins on two tables used to display information based on choices entered.

I can enter all the data I want and it works fine, and if I delete a record in the query, it disappears from the datasheet. However, if I close the query and reopen it, the deleted data is back - it didn't delete from the table. What's going on?

I'm using MS Access 2003 with the post-SP3 hotfix.

Just for clarification - I normally don't use this query as a datasheet, but as the recordsource for a form. I noticed first that my "Delete" button wasn't working properly, then backtracked to the query and realized that the problem must be structural rather than code-related. I still want to know what the deal is, but I suppose I could just write a delete query for the specific record from the table as a workaround rather than using acCmdDeleteRecord.
Oct 30 '08 #1

✓ answered by topher23

Just to put some closure on this - I gave up on acCmdDeleteRecord in this case and used an SQL Query to delete the record, as I was musing about in the original post. Thanks Emil.

3 1595
Hmm interesting

I haven't come across this before and I would think that if youry query is not somehow set up as read only then you should be able to do that.

I don't have a solution for that so I hope other members will be able to help more then I.

Regards
Emil
Oct 31 '08 #2
topher23
234 Expert 100+
Just to put some closure on this - I gave up on acCmdDeleteRecord in this case and used an SQL Query to delete the record, as I was musing about in the original post. Thanks Emil.
Feb 13 '09 #3
NeoPa
32,556 Expert Mod 16PB
I wouldn't expect a query with outer joins to be updatable anyway. That doesn't really explain it though, as I would expect it to report this as a problem if you tried to do a deletion, rather than look like it had worked, only for the changes not to be reflected in the underlying table.
Feb 13 '09 #4

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

Similar topics

2
by: C Kirby | last post by:
I'm running a DB using MSDE (2000) that is interfaced by 2 different ades running on PCs with Access 2000 Runtime. One of the ADEs is a package accounting system that is very solid and stable, the...
10
by: DaveDiego | last post by:
I've had a user delete one of the client records, I do have a version of the DB with all records intact before the deletion occured. Whats the best approach to getting all the related records in...
1
by: iam247 | last post by:
Hi I am a relative beginner with SQL and ASP. With some help after previous posts I have a page which successfully requests querystrings from another page and deletes a record from an access...
11
by: serge | last post by:
When i debug a trigger is it possible to add a WATCH on the INSERTED or DELETED? I think not, at least I couldn't figure out a way to do so. Does someone have a suggestion on how I can see the...
5
by: BrianDP | last post by:
This is a strange one-- I have an Access 2K database with a split front end/back end. There are two tables in the back end - RFile and RLine. There is a one to many relationship from...
3
by: BrianDP | last post by:
I have a database with a split front end/back end. There is a key table in the back end called Catalog, and it is sort of a central key table for all sorts of things. It's a list of all the jobs...
2
by: MLH | last post by:
I had a table (tblReturnReceipts) with 47 records and I wanted 18 of its records deleted. So I thought I would be smart and make another table (a temporary junk table) named BadRRIDs and use it in...
1
by: perryche | last post by:
I do not know what happened, but all of a sudden, a particular row of records had changed to "#Deleted" to all of them. What might be the cause, and how to prevent this? This is not the first...
2
by: jujube | last post by:
Hi, I thought I found a great command in RunSQL, but.... In my Unload event for a form, I added some clean-up code: Private Sub Form_Unload(Cancel As Integer) If Not IsNull(Me.ID.Value) And...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
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
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.