It depends what you want to do. Normally the update sql requires a where clause if there is a condition attached to it. Take a look at the help file on UPDATE SQL.
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.
Which version of VFP are you using? I believe the ability to set a value equal to the result of a SELECT is only supported in recent versions. I'm not completely sure about that ... perhaps someone else can confirm.
On reflection, I think Mike Gagnon is right. You need a WHERE clause to link the SELECT to the UPDATE. Otherwise, how would it know which product belonged to which invoice?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.