Line 39 should probably look something like this:
con.Execute ("update table4 set Quantity = Quantity + " & qty & " where Item_code='" & Text3.Text & "'")
Or, for consistency's sake, get rid of line 37 and change line 39 to:
con.Execute ("update table4 set Quantity = Quantity + " & Text5.Text & " where Item_code='" & Text3.Text & "'")
Hope this helps.
BitBlt
Practically a Posting Shark
894 posts since Feb 2011
Reputation Points: 482
Solved Threads: 148
Skill Endorsements: 14
Glad to help. Be sure to mark the thread "Solved".
Also, one thing about coding errors...sometimes it has nothing to do with how smart or experienced you are...sometimes you just get in one of those situations where you beat your head against a problem for hours, then someone peeks over your shoulder, looks at it for 10 seconds, and says, "Oh, the problem is right THERE." No reflection on the abilities of the coder, it has happened to all of us at one time or another. Keeps us all humble.
We just have to make sure it doesn't happen OFTEN... :D
BitBlt
Practically a Posting Shark
894 posts since Feb 2011
Reputation Points: 482
Solved Threads: 148
Skill Endorsements: 14
Question Answered as of 1 Year Ago by
BitBlt