syntax problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • compwizard
    New Member
    • Feb 2008
    • 12

    syntax problem

    Hi,

    I am getting a syntax error saying: too few parameters expected one.

    This is the code that i have been trying:

    CurrentDb.Execu te "UPDATE tblitem SET IsSelected = True WHERE itemID = '" & cboItemID & "'"

    Would anyone know what the problem could be, the field is alphanumeric
  • compwizard
    New Member
    • Feb 2008
    • 12

    #2
    Not to worry, i have resolved this issue....

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32634

      #3
      It would be nice to see your solution. It may help others with similar problems in future.

      Comment

      • compwizard
        New Member
        • Feb 2008
        • 12

        #4
        The problem was,
        The field IsSelected in my table was stored as selected only and therefore this error is occuring, also the piece of code "'" is used for alphanumeric fields.

        So i finally worked out....Hope this helps

        Comment

        • NeoPa
          Recognized Expert Moderator MVP
          • Oct 2006
          • 32634

          #5
          It does - thank you.
          I guess the ItemID was actually numeric then.

          Comment

          • compwizard
            New Member
            • Feb 2008
            • 12

            #6
            thats right.......... ............... ..

            Comment

            Working...