Results 1 to 8 of 8

Thread: deleting a record from the database

  1. #1

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827

    deleting a record from the database

    I get an error message when I try to delete a record from an access made table.
    I am using "Biblio.mdb" and whenever I try to delete a record, it gives me the following record:

    The record cannot be deleted or changed because the table "Titles" include related records.
    Baaaaaaaaah

  2. #2

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    nobody???
    Baaaaaaaaah

  3. #3

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    ???
    Baaaaaaaaah

  4. #4
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Open the database in access, and look at the relationships.

    There will be relation between the Titles table and one or more other tables.

    What vb is telling u is that u have to delete all the records in the related tables before u can delete the record in question.
    -= a peet post =-

  5. #5

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    So, it means that it depends on the type of database?
    Do you have any link to other .mdb database that I can use to just create a simple database example program(Add,delete,search,sort,filter records)?
    Baaaaaaaaah

  6. #6
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    Originally posted by abdul
    So, it means that it depends on the type of database?
    Do you have any link to other .mdb database that I can use to just create a simple database example program(Add,delete,search,sort,filter records)?
    It depends on how the relationships (if any) has been built.

    I seldom use it, because of this

    I u have Access installed, u can just create one, or just remove the relationships in the biblio db or delete the related records before u delete the recs in the table in question.

    Or I can mail u a db with some data in it, for u to test on
    -= a peet post =-

  7. #7

    Thread Starter
    PowerPoster abdul's Avatar
    Join Date
    Dec 2000
    Location
    Ontario,Canada
    Posts
    2,827
    Actually, I have vb6.0 pro and I am using access 2002. Will vb version be compatible with access xp database?
    Baaaaaaaaah

  8. #8
    -= B u g S l a y e r =- peet's Avatar
    Join Date
    Aug 2000
    Posts
    9,629
    I think so... never tried the XP-version though.. but i think eiSecure did it a while back.
    -= a peet post =-

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