Hello All,
Thanks in advance for your help.
I am working with a Parent form that has 3 subforms. Each or these is based on a single table. I have set up a delete button in each subform that erases the current selected record. However, the tables in the subforms have relationships that do not allow every record to be deleted.
When you click on the delete button on a related record, I cannot get a msgbox to show up saying "You cannot delete.......". The code sees the msgbox and I step through it, but it doesn't show up on the screen. The record is not deleted, but I cannot get Access prompt the user as to why.
Note: If I select the record and hit the "delete" keyboard key, I get the warning though, it just the code that won't work.
Any suggestions?
-Log
Thanks in advance for your help.
I am working with a Parent form that has 3 subforms. Each or these is based on a single table. I have set up a delete button in each subform that erases the current selected record. However, the tables in the subforms have relationships that do not allow every record to be deleted.
When you click on the delete button on a related record, I cannot get a msgbox to show up saying "You cannot delete.......". The code sees the msgbox and I step through it, but it doesn't show up on the screen. The record is not deleted, but I cannot get Access prompt the user as to why.
Note: If I select the record and hit the "delete" keyboard key, I get the warning though, it just the code that won't work.
Any suggestions?
-Log