Solved

Create a Memo field using a Make-Table query

Posted on 2006-11-18
3
233 Views
Last Modified: 2008-02-26
I am trying to use a make-table query to concatenate 8 text fields from an original table into a memo field in the new table.  Unfortunately, Access wants to create this new field as a Text type.  Even after going into Options > Tables/Queries > Default text field: memo, Access still wants to create the new field as Text.  There has been a similar question posted on Experts Exchance that was never technically resolved.  Anybody know how to do this effectively?
0
Comment
Question by:VEIC
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
Leigh Purvis earned 250 total points
ID: 17971865
Personally, if I had such a precise need, I'd likely create the definition of the new table first and then just append the records into it.

Is the table from which you're selecting a local Jet one?
(i.e. you're familiar and in control of it?)
Then you're in a position to create the new table too?

If you wanted a quick cheat you could run a make table then an append - with a little DDL statement inbetween.
Roughly...

With CurrentDb
    .Execute "SELECT * FROM tblOld INTO tblNew WHERE 0"
    .Execute "ALTER TABLE tblNew ALTER COLUMN MemoFieldName MEMO"
    .Execute "INSERT INTO tblNew SELECT * FROM tblOld"
End With
0
 

Author Comment

by:VEIC
ID: 17971971
Thank you kindly!
0
 
LVL 44

Expert Comment

by:Leigh Purvis
ID: 17971977
Ah - a favourite phrase of mine (was a fan of Due South).

You're most welcome. :-)
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Query Missing Money orders... 6 73
Access recordset not updateable 8 39
Search field on a form 7 17
Dlookup issue 4 16
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now