Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
COPY TO an Excel - including Memo fields
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00844067
Message ID:
00844092
Views:
47
I am using this:

.....
ConnectionString="ODBC;DSN=Visual FoxPro Tables;UID=;PWD=;SourceDB=c:\;SourceType=DBF;Exclusive=No;BackgroundFetch=Yes;Collate=Machine;"

sqlquery="SELECT * FROM c:\foxwork\vfpapps\syserr.dbf"

ObjExcel.ActiveSheet.QueryTables.Add(;
ConnectionString,;
ObjExcel.ActiveSheet.Range("A1"),;
sqlquery).Refresh
....

>I saw the answer to this awhile ago and thought I saved it for future reference....now the future is here and I can't find it!
>
>I am using the COPY TO command to export records to an Excel spreadsheet but I also need to export the text in the memo field for each record. I know there was a limit of 254 chars on the workaround, and that is fine.
>
>Can someone refresh my memory?
>
>tks,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform