Solved

Create a Memo field using a Make-Table query

Posted on 2006-11-18
3
235 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

948 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

23 Experts available now in Live!

Get 1:1 Help Now