I am trying to perform a changeto query to change a memo field in one table to a memo field in another table. "Operation is not supported for BLOB fields". How do I handle memo fields to update another table?
Thanks for any help.
Now this example is very basic and relies upon Pdox to handle record locking and verification for you. It also will create a record in the noncom table for each record in the preferences_temp table. Seems kind of redundant to me, but I don't know your table structure. If you are wanting to only update certain types of records you can modify the scan to read.
SCAN TC1 FOR TC1."preferences_id" = "YOUR VARIABLE HERE" :
Personally I use querys only where I am pulling data into a users priv directory and modifing it there. In a multiuser enviornment TCursors are more reliable and easier to control.
I guess I should have changed my example I really don't need an insert but a changeto. How would I scan both tables for the same value?
Similar to:
qu=Query
ANSWER: RIV:ANSWER.DB
Do a straight joined query (checking all fields) to produce the complete record set you want to change (resulting in an answer.db table). Then change every record in the answer.db table using a tCursor scan loop. Finally, ADD the answer table back into the original table you wanted changed as an UPDATE.
Mac
"There are only 10 kinds of people in this world... those who understand binary and those who don't"
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.