P
(PeteCresswell)
I've got a couple of "Delete" queries that operate on tables
where there are recursive relationships between records.
Net result is that the first time I run the query, it will throw
something like "Cannot delete all records...." and then it will
delete something like 79,000 records - leaving 17,000 or so tb
deleted on the next pass.
I can run the query manually five times and gradually whittle
down the records to where everything is deleted that I want to
delete.
But how to do that in VBA?
DoCmd.SetWarnings does not seem to cover that situation.
Also, on the first iteration the query throws "There isn't enough
disk space or memory to undo....." which SetWarnings also does
not seem to address.
There's got tb another parm/function that tells VBA to go ahead,
but what?
where there are recursive relationships between records.
Net result is that the first time I run the query, it will throw
something like "Cannot delete all records...." and then it will
delete something like 79,000 records - leaving 17,000 or so tb
deleted on the next pass.
I can run the query manually five times and gradually whittle
down the records to where everything is deleted that I want to
delete.
But how to do that in VBA?
DoCmd.SetWarnings does not seem to cover that situation.
Also, on the first iteration the query throws "There isn't enough
disk space or memory to undo....." which SetWarnings also does
not seem to address.
There's got tb another parm/function that tells VBA to go ahead,
but what?