Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Update

Status
Not open for further replies.

jworley

Programmer
Jun 19, 2000
36
GB
Hi,<br><br>I am playing around with converting some of my existing VFP apps so that they make more use of SQL.&nbsp;&nbsp;However, I am having problems with the UPDATE command - whenever I reference an object i.e. a text box on a form, I get the error message &quot;TXTADDRESS3 is not an object&quot;.&nbsp;&nbsp;My question is, why the error message, and how can I grab a value from a text box by referencing it directly instead of storing it to a memory variable first (which seems to work).<br><br>UPDATE customer ;<br>&nbsp;&nbsp;&nbsp;&nbsp;SET ;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;address1 = m.address1, ;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;address2 = m.address2, ;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;address3 = thisform.txtAddress3.value ;<br>&nbsp;&nbsp;&nbsp;&nbsp;WHERE ; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;custno = 0<br><br>Thanks<br>
 
Are you sure the textbox control sits directly on the form and not in some other container? <p>John Durbin<br><a href=mailto: > </a><br><a href= > </a><br>ICQ VFP ActiveList #73897253
 
Aslo not trying your code but just looking you may need prenthesis around the textbox reference or EVAL() <p>John Durbin<br><a href=mailto: > </a><br><a href= > </a><br>ICQ VFP ActiveList #73897253
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top