|
-
Mar 7th, 2001, 01:43 PM
#1
Thread Starter
Fanatic Member
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
-
Mar 7th, 2001, 01:52 PM
#2
Hyperactive Member
I think you have an extra set of quotes at the end of your statement.
Achichincle
VB6 (VSEE SP5, W2KPro)
ASP
HTML
-
Mar 7th, 2001, 01:53 PM
#3
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|