Strangely enough - it still didn't work right. The Ship_Track field
ended up instead being created as field Exp_11. You mentioned NOT
putting csrMemo in FROM Clause. But, when I just DID do that - then it
worked!

Either way - problem is solved.

Thanks again to everyone,
-K-

-----Original Message-----
From: [email protected] [mailto:[email protected]]
On Behalf Of Tracy Pearson
Sent: Thursday, April 05, 2012 10:54 AM
To: [email protected]
Subject: RE: Memo Fields in SQL SELECTS...

Kurt Wendt wrote on 2012-04-05: 
>  So - THAT is the problem! Most of our systems are done in VFP7 - and
we
>  continue to make updates in VFP7. This particular client - where I am
>  writing the code for - they HAVE another system (an equivalent
version -
>  but, a true Windows type interface instead of the old DOS looking
>  interface) running under VFP9 - but, its definitely a different
system.
>  
>  So - is there any option that I can implement to run under VFP7???
>  
>  Thanks,
>  -K-

Kurt,

The option Frank Cazabon gave:

Create a cursor with a memo field, add a blank record to it and then add
that field to your sql


Create Cursor csrMemo (Ship_track m)
Append blank

SELECT INVHDR.Invoice as Invoice_Number, ;
        DTOC(INVHDR.INVDATE) as Invoice_DATE, ;
        INVHDR.ACCOUNT, INVHDR.Store as Store_Number, ;
        INVHDR.CustPO as Purchase_Order_Number, ;
        "$"+ALLTRIM(STR(INVHDR.TotalChg,12,2)) As Invoice_Amount, ;
        SPACE(20) As Description, Space(12) As Upc, Space(25) As SKU, ;
        "EACH" As UOM, csrMemo.Ship_track, ;
        DTOC(INVHDR.Complete) as Cancel_Date, ;
        SPACE(15) as Item_Number ;
FROM INVHDR ;
WHERE &XFILTER ;
INTO Cursor TempInv READWRITE


*Note that the csrMemo is NOT in the FROM clause of the SELECT
statement.*

Tracy Pearson
PowerChurch Software


[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/289ea162f5642645b5cf64d624c66a140b7ce...@us-ny-mail-002.waitex.net
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to