Results 1 to 3 of 3
  1. #1
    Starter is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    2

    Error code :invalid sql statement expected 'delete' 'insert'"...

    I am getting the above error message when using the following code in access 2010



    Rs1.Open "", Cost, adOpenForwardOnly, adLockReadOnly

    Rs2.Open "Stock", cn, adOpenDynamic, adLockOptimistic

    your help will be greatly appreciated.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    I suggest you read this and do some testing.

    I'm also going to recommend working through this tutorial to get a firmer grip on design concepts.

    anddon't overlook Google to find info.

    Good luck.

  3. #3
    Starter is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2015
    Posts
    2
    is there anything in that line of code i need to check. It works fine with access 2003

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

Similar Threads

  1. Compile error: Expected end of statement
    By ritati in forum Macros
    Replies: 1
    Last Post: 12-05-2014, 05:33 AM
  2. HTML Table : Expected end of statement error.
    By jasdem in forum Programming
    Replies: 5
    Last Post: 10-15-2013, 08:16 AM
  3. Expected End of Statement error
    By SamNotSoWise in forum Programming
    Replies: 5
    Last Post: 06-25-2012, 04:41 PM
  4. compile error: expected end of statement
    By RedGoneWILD in forum Programming
    Replies: 5
    Last Post: 07-29-2010, 10:12 AM
  5. Replies: 3
    Last Post: 07-21-2010, 02:41 AM

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