Re: Deleting records via Access
Hello,
I've imported data with the import tool and now realised, that I have to delete quite some of them. They are too many, that it would be worth doing it manually. So I wonder, if it possible to do it from Access?
I can create a query in Access, which gives me all the Taxon_Occurrence-Keys, which I would have to delete. So I would delete all recordsets from the table "dbo_Taxon_Occurrence", which have these Taxon_Occurrence_Keys. I then have to delete all relating datasets from all tables, where the Taxon_Occurrence_Key is used as foreign key? I've found so far "dbo_TAXON_OCCURRENCE_DATA", "dbo_TAXON_OCCURRENCE_RELATION" and "dbo_TAXON_OCCURRENCE_SOURCES". Are there any more?
I would then delete all datasets from the table "dbo_Sample", of which the Sample_Key is not used any longer as foreign key in "dbo_Taxon_Occurrence". Then I would delete all relating datasets from all tables, where the Sample_Key is used as foreign key. So far I've found "dbo_SAMPLE_DATA", "dbo_SAMPLE_RECORDER", "dbo_SAMPLE_RELATION", "dbo_SAMPLE_SOURCES" and "dbo_SAMPLE_TYPE". Are there any more?
I would then delete all datasets from the table "dbo_SurveyEvent", of which the Survey_Event_Key is not used any longer as foreign key in "dbo_Sample". I would delete all relating datasets from all tables, where the Survey_Event_Key is used as foreign key. So far I've found "dbo_SURVEY_EVENT_OWNER", "dbo_SURVEY_EVENT_RECORDER" and "dbo_SURVEY_EVENT_SOURCES". Are there any more?
Has anybody done something similar? Is there an easier way of doing that?
Thanks for your help,
Wolfgang