DoCmd.RunSQL ("UPDATE Sears SET Details = (Price) & ' - ' & (Quanity)")
In Visual Basic I type in the above command and it tells me that i Have a
syntax error. How do I solve this problem
Context? Are there fields named Price and Quantity (Quanity??) in the
table named [Sears], or are these variables in your VBA procedure?
What would be typical values in Price and Quantity, and what do you
want stored in the field named Details?
A couple of concerns: if Sears is the Sears company, and if you have
other tables named (say) WalMart and Gap, you're on dangerous ground;
storing data in tablenames is NEVER a good idea. And if you're
intending to store two values (Price and Quantity) in a single field,
you're in even worse trouble; it's *never* a good idea to do so.
John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps