Results 1 to 3 of 3

Thread: Where is the missing operator?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2001
    Posts
    759
    Hi Everyone,

    I'm stuck on an UPDATE sql command. I keep getting an error message that says that i'm missing an operator. I am trying to get the HighPoint to subtract from the Amount in the text matrix where the item number in rsItemNumber equals the text matrix Itemnumber. What is wrong with what I am doing?


    rsItemBalance.Open "UPDATE ItemBalance SET HighPoint = HighPoint - " & msgViewToday.TextMatrix(1, 0) & " WHERE ItemNumber = " & msgViewToday.TextMatrix(1, 1) & "", _
    cnn, adOpenStatic, adLockOptimistic

  2. #2
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    LoCal
    Posts
    280
    I think you have an extra set of quotes at the end of your statement.
    Achichincle

    VB6 (VSEE SP5, W2KPro)
    ASP
    HTML

  3. #3
    Fanatic Member
    Join Date
    Feb 2000
    Location
    Dunmow,Essex,England
    Posts
    898
    It looks ok, it might be easier if you declared a string and moved the update command the the string and look at what is in the string value, it may be clearer if you see what the update command actually says (i.e. your matrix values may be empty)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width