___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