Cannot delete record error

gunmetal

New Member
Joined
Jul 9, 2010
Messages
33
So I have this D/B in 2003, I have several peoples names listed under the Tech filed, and some are no longer with us I wish to delete this records but I cannot because it says

The Record cannot be deleted or changed because the table 'Main' includes related records.

Any help or would you need the db file?
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
there are rows in Main that are related to the techs you want to delete

you would have to delete those rows first


just as if you had a table of students and another table of classes, you wouldn't be able to delete someone from the student table if they're enrolled in a class

you would have to take them out of the class first

are you absolutely sure you want to delete those rows ?
sometimes its better just to have an extra field
CURRENTLY_EMPLOYED yes/no
or
DATE_TERMINATED datetime

and then select only techs that are currently employed or where date_terminated is null
 
Upvote 0
So I have this D/B in 2003, I have several peoples names listed under the Tech filed, and some are no longer with us I wish to delete this records but I cannot because it says

The Record cannot be deleted or changed because the table 'Main' includes related records.

Any help or would you need the db file?

Scratch that Idea, I am going to recreate the DB, but now what I want to do is be able to hide the other names from the form such as this

I have Jim Bob Dave and Bill, when we pull up the form now that dave is gone, I dont want Dave to be able to be selected but I still want all of his records in the main database and excel spreadsheet
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top