need help about vb sql please urgent

Discussion in 'Visual Basic ( VB )' started by efuzone, Jul 7, 2009.

  1. efuzone

    efuzone New Member

    Joined:
    Jul 7, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Hello sir,
    i am faizan i need your help its realy urgent, i am working in one office as a computer operator and i am nill in VB and SQL they have one software made by one person he just gave them exe file to run and setuped sql database.. now the software is showing all trial balance and ledger in records everything is ok but when i insert any new entry for cash receipt it says

    "Runtime error '2147217873 (80040e2f)'
    [Microsoft] [ODBC SQL Server]INSERT Statement Conflicted with column foreign Key constraint 'FK-GL-Account-Line-GL-Accounts' The conflict occured in DB 'Accounts_2008' table GL_Account' column 'idno'

    please let me know how to solve this problem. i dont have source code file for this software just i have database backup and one mdf file.. to attech database..
    Thanks in advance

    Regards
    Faizan Ahmed
     
  2. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,043
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    Sorry, my mistake.
     
    Last edited: Jul 7, 2009
  3. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,043
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    The error message is pretty clear. You have specified key values that doesn't exist in the parent table. The message indicates the constraint and table so you can find out which tables are involved
     
  4. efuzone

    efuzone New Member

    Joined:
    Jul 7, 2009
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    i dont have source file for visual basic soft so what should i do please :(
     
  5. naimish

    naimish New Member

    Joined:
    Jun 29, 2009
    Messages:
    1,043
    Likes Received:
    18
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Location:
    On Earth
    The only thing I can see is, either go ahead and develop new your own code, or do some R&D on database table's structure ;)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice