insert commands dont work (as well as the database)

Last post 09-14-2009 3:24 PM by mikebraginsky. 5 replies.

Sort Posts:

  • insert commands dont work (as well as the database)

    09-13-2009, 3:54 PM

     hello,

    i have some problems with inserting data into ms access database,

    it gives me the same eror over and over again :

    "insert into syntex eror".

    after that

    when i open the database its in "read only" state, and i cant change nothing in the datafield within the software,

    other sql commands dont work as well.

    please help me,

    i cant insert,delete, upload. data.

     

    what is the problem?

     

    tnx mike



    yours,

    michael brag,
  • Re: insert commands dont work (as well as the database)

    09-13-2009, 4:11 PM
    Answer

    mikebraginsky:

    it gives me the same eror over and over again :

    "insert into syntex eror".

    what is the problem?

    The problem is that you have a syntax error in your INSERT statement.  You need to fix it.  Here's how: http://www.mikesdotnetting.com/Article/76/80040E14-MS-Access-Syntax-Error-messages


    Regards Mike
    [MVP - ASP/ASP.NET]
    My site
    What ASP.NET can and can't do
  • Re: insert commands dont work (as well as the database)

    09-13-2009, 4:41 PM

     no, it is still doesnt work

    whats wrong with this one for exemple:

    dim tt as new oledbcommand("delete from mikiliki where numinumi = 2", con)

    tt.connection.open()

    tt.executenonquery()

    tt.connection.close()



    yours,

    michael brag,
  • Re: insert commands dont work (as well as the database)

    09-13-2009, 4:46 PM

     oh and by the way,

    now it says:

    cannot delete from database - failure

     

    and when i insert it says:

    you should use updatable query

     



    yours,

    michael brag,
  • Re: insert commands dont work (as well as the database)

    09-13-2009, 5:15 PM
    Answer
    • Star
      8,670 point Star
    • hans_v
    • Member since 01-29-2007, 9:03 PM
    • Posts 1,498

    mikebraginsky:

    and when i insert it says:

    you should use updatable query

     

    http://www.mikesdotnetting.com/Article/74/Solving-the-Operation-Must-Use-An-Updateable-Query-error

  • Re: insert commands dont work (as well as the database)

    09-14-2009, 3:24 PM

     

    thank you very much!

    it worked!

    thank you!

     



    yours,

    michael brag,
Page 1 of 1 (6 items)