I have a problem with my debugger in reference to deleting a record that has related records which have also been deleted. I am writing a vb program for a wedding guestlist database. There is a table for each family and a related table for family members, connected by the family ID. I am using an ado control to connect my vb program to Access. The problem is that I am receiving an error message when I try to delete a family record. It says there are related records in the member table. But before I delete the family record, I go through each related member record and delete it. The database shows that the member records have all been deleted when the family record deletion is attempted.
When I use the debugger to step through the deletion section, the program does exactly what it is supposed to do and deletes the family record (and related member records) just right. But when I run the program straight through, I get an error message at the point of deleting the family record. This makes it very hard to figure out what the problem is!
Have any of you had a problem such as this, with error messages when run, but perfect performance using the debugger? Please help!
When I use the debugger to step through the deletion section, the program does exactly what it is supposed to do and deletes the family record (and related member records) just right. But when I run the program straight through, I get an error message at the point of deleting the family record. This makes it very hard to figure out what the problem is!
Have any of you had a problem such as this, with error messages when run, but perfect performance using the debugger? Please help!