D
doyle60
I have a query that looks like this:
SELECT ShipmentHeadertbl.*, ShipmentDetailtbl.ShipmentID
FROM ShipmentHeadertbl LEFT JOIN ShipmentDetailtbl ON
ShipmentHeadertbl.ShipmentID = ShipmentDetailtbl.ShipmentID
WHERE (((ShipmentDetailtbl.ShipmentID) Is Null));
I run in and get about 4000 records. I than delete those records. I
do this by selecting all the records and right clicking and deleting
with the mouse. It deletes them just fine. Than I close down the
query. But when I go back into the query the records are still there.
They were not deleted and Access didn't tell me so.
So than I change it to an actual Delete Query:
DELETE ShipmentHeadertbl.*, ShipmentDetailtbl.ShipmentID
FROM ShipmentHeadertbl LEFT JOIN ShipmentDetailtbl ON
ShipmentHeadertbl.ShipmentID = ShipmentDetailtbl.ShipmentID
WHERE (((ShipmentDetailtbl.ShipmentID) Is Null));
When I double click the query, I get this message:
"Couldn't delete from specified tables."
The "Help" button says this:
_____________________________________________
Couldn't delete from specified tables. (Error 3086)
You tried to delete data from one or more tables, but the deletion
couldn't be completed.
Possible causes:
· You don't have permission to modify the table. To change your
permissions assignments, see your system administrator or the table's
creator.
· The database was opened for read-only access. The database is
read-only for one of these reasons:
· You used the OpenDatabase method and opened the database for
read-only access.
· The database file is defined as read-only in the database server
operating system or by your network.
· In a network environment, you don't have write privileges for the
database file.
· In Visual Basic, you used the Data control and set the ReadOnly
property to True.
To delete the data, close the database, resolve the read-only
condition, and then reopen the file for read/write access.
_____________________________________________
But I do have permissions and I set nothing to Read-only. The records
can be deleted by going directly to the table. I am the owner of the
database.
So what is up? What do I need to do to delete these records?
Suggestions?
Thanks,
Ma
SELECT ShipmentHeadertbl.*, ShipmentDetailtbl.ShipmentID
FROM ShipmentHeadertbl LEFT JOIN ShipmentDetailtbl ON
ShipmentHeadertbl.ShipmentID = ShipmentDetailtbl.ShipmentID
WHERE (((ShipmentDetailtbl.ShipmentID) Is Null));
I run in and get about 4000 records. I than delete those records. I
do this by selecting all the records and right clicking and deleting
with the mouse. It deletes them just fine. Than I close down the
query. But when I go back into the query the records are still there.
They were not deleted and Access didn't tell me so.
So than I change it to an actual Delete Query:
DELETE ShipmentHeadertbl.*, ShipmentDetailtbl.ShipmentID
FROM ShipmentHeadertbl LEFT JOIN ShipmentDetailtbl ON
ShipmentHeadertbl.ShipmentID = ShipmentDetailtbl.ShipmentID
WHERE (((ShipmentDetailtbl.ShipmentID) Is Null));
When I double click the query, I get this message:
"Couldn't delete from specified tables."
The "Help" button says this:
_____________________________________________
Couldn't delete from specified tables. (Error 3086)
You tried to delete data from one or more tables, but the deletion
couldn't be completed.
Possible causes:
· You don't have permission to modify the table. To change your
permissions assignments, see your system administrator or the table's
creator.
· The database was opened for read-only access. The database is
read-only for one of these reasons:
· You used the OpenDatabase method and opened the database for
read-only access.
· The database file is defined as read-only in the database server
operating system or by your network.
· In a network environment, you don't have write privileges for the
database file.
· In Visual Basic, you used the Data control and set the ReadOnly
property to True.
To delete the data, close the database, resolve the read-only
condition, and then reopen the file for read/write access.
_____________________________________________
But I do have permissions and I set nothing to Read-only. The records
can be deleted by going directly to the table. I am the owner of the
database.
So what is up? What do I need to do to delete these records?
Suggestions?
Thanks,
Ma