Results 1 to 2 of 2
  1. #1
    pericherlasuma is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    May 2011
    Posts
    1

    Question Operation must use an updateable query.

    Hi,



    i am facing with this error from last 1 week.Issue is i am using microsoft access 2002-2003 for my database..i am working in .net visual c++ windows forms and using Microsoft.Jet.OLEDB.4.0 connecting to this .mdb file for getting my db data..

    Here after creating msi for my application.If i try to add ,delete or update the data in .mdb file i am getting this error..like "Operation must use an updateable query."

    here is my insert code:

    OleDbCommand^ cmd = gcnew OleDbCommand("INSERT INTO user_profileinfo VALUES('"+getpresentuserid+"','"+getpresentuserid+ "','"+fullname+"','"+fullname+"','"+dateofbirth+"' ,'"+Patnername+"','"+Parnerdob+"','"+usercarno+"', '"+Psychicno+"','"+Destinyno+"','"+nameno+"','"+ca rno+"',0,'"+statusfrom+"',0)",conn);

    try
    {

    conn->Open();

    cmd->ExecuteNonQuery();

    conn->Close();
    }
    catch(OleDbException^ e)
    {
    MessageBox::Show(e->Errors[0]->ToString());
    }

    Can any one tell me why i am getting this error...

    Thanks in advance.....

  2. #2
    NTC is offline VIP
    Windows Vista Access 2007
    Join Date
    Nov 2009
    Posts
    2,392
    your issue is not code nor technology; a non-updateable query is sql logic. you can search on this topic. in the most general terms there is an indefinite relationship or aggregates in the joins.

    the technical fix is to focus on making your query step by step and coming to an understanding on which point does it revert to not updateable.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 05-02-2011, 12:08 PM
  2. Non-Updateable Query
    By swalsh84 in forum Queries
    Replies: 4
    Last Post: 04-27-2011, 12:39 PM
  3. Updateable query rules
    By gg80 in forum Queries
    Replies: 7
    Last Post: 01-05-2011, 11:50 PM
  4. Operation must use an updateable query
    By skaswani in forum Queries
    Replies: 0
    Last Post: 12-23-2010, 11:59 PM
  5. Operation Must use an Updateable Query
    By Lady_Jane in forum Queries
    Replies: 2
    Last Post: 12-14-2010, 03:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums