troubleshooting Question

Delphi reading cell data into TMemo

Avatar of TG-Steve
TG-Steve asked on
Delphi
3 Comments1 Solution303 ViewsLast Modified:
Hi Guys

i am trying to perform the below query but it does not work and i have obviously not done it correctly. i am trying to read a single cells data back into a form. i orginally write data into the form and insert it into a remote mysql database but if the user puts a number in the edit1.txt i want to query first to see if there is data present and if not they can then populate it via another procedure

ADOQuery2.close;
ADOQuery2.SQL.text := ('SELECT description FROM Data_description WERE rootplu = (''edit1.text'')');
Memo1.Lines.Text := ADOQUERY2.FieldByName('description').AsString;
ADOQuery2.ExecSQL;
ADOQuery2.Close;
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros