Record Deletion in Forms 
Author Message
 Record Deletion in Forms

I have a form that tracks personnel and I have created a button on that form
to delete the personnel record if that employee leaves.  When I do click
this button (since I have 3 other sub forms with cascade deletes turned on)
I get a message notifying me that "multiple records will be deleted..."  Is
there a way to customize this message?  If so how and where do I do it?

--
Chad Atchley
University of Oklahoma
MIS Senior



Sat, 01 Jul 2000 03:00:00 GMT  
 Record Deletion in Forms

Put code in Form_Delete event, check in help on this and a few other events
that occur when
deleting, so you can cancel the deletion or confirm it without user
intervention


Quote:
>I have a form that tracks personnel and I have created a button on that
form
>to delete the personnel record if that employee leaves.  When I do click
>this button (since I have 3 other sub forms with cascade deletes turned on)
>I get a message notifying me that "multiple records will be deleted..."  Is
>there a way to customize this message?  If so how and where do I do it?

>--
>Chad Atchley
>University of Oklahoma
>MIS Senior



Sun, 02 Jul 2000 03:00:00 GMT  
 Record Deletion in Forms

___D U H !! ____

Thanks once again Terry for catching that stupid mistake :-)

Documentation?? Hey I thought developer's philosophy was "If it was hard to
code, it should be danged harder to use..." Right? :-)

Thanks
Dev

--
Dev Ashish
---------------

:Hi Dev
:
:should also have been
:
:         strMsg = "Are you sure you want to Delete this record?"
:         If MsgBox(strMsg, vbQuestion + vbYesNo) = vbYes Then
:
:You were asking them if they wanted to delete the record, and if they said
:No you were deleting it.  Mind you if you documented this as a feature of
:your system I suppose it would be OK <g>.
:
:
:>>        'Disbale the default system warning
:>>        docmd.setwarnings False
:>>         strMsg = "Are you sure you want to Delete this record?"
:>>         If MsgBox(strMsg, vbQuestion + vbYesNo) = vbNo Then
:>>            'Delete the record
:>>            dbengine.RunSQL "Delete ...... from tablename";
:>>        end if



Mon, 03 Jul 2000 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Tracking Record Deletions

2. Strange Record Deletion Problem

3. Record Deletion In Access Database

4. Record deletion

5. Validating Deletion of a Record

6. Multiple record deletion

7. Handling last record deletion??

8. Any suggestions to speed up record deletion?

9. Multiple record deletion

10. FoxPro databases and records marked for deletion

11. record deletion

12. Handling last record deletion??

 

 
Powered by phpBB® Forum Software