Results 1 to 2 of 2

Thread: relational records cann delete - how to catch the error

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Location
    bkk
    Posts
    224

    relational records cann delete - how to catch the error

    hi all
    i have a table related with another table probably master and tranasaction. when user tryies to delete a record in the master it has to indicate that the record is related or exists in a trasactional table. is it possible to check without checking the transaction table. replies and help will be appreciated
    thanks
    parthi

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385
    parthi_75


    Use Relationships. This is what relational databases are for. If you try to delete the master while transactions exist you will get an error. Trap the error and do what you need to do.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width