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!

Extracting contents of Memo field from Access field via VBA 1

Status
Not open for further replies.

Actuary2B

IS-IT--Management
Jan 30, 2007
7
US
I have a FoxPro database that was imported into Access (we don't have FoxPro). The resulting table contains 100 records and three fields: A, B, C.

Field C is defined as a "memo" field and contains lots of text. I need a way to extract the contents of each of the memo fields for each record into, say, ideally, a flat file.

I am proficient with VBA for Excel but I am a fish out of water with the Access object model.

Any basic help would be greatly appreciated. Thank you.
 
Simply export a query ...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Sounds simple enough. Could you please elaborate more? Thanks.
 
Create a query. e.g. qry1
Code:
Select cola, colb, colc from tbl
Single click (select) the query. ChooseFile->Export from the menu. Choose the file type (e.g. text) and hit the 'export' button.
[smile]

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
And count your lucky stars if you can actually get all of the data from a foxpro memo field.
 
Thanks! That was great. I was looking for a much more difficult solution but this works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top