Solved

Create a Memo field using a Make-Table query

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
It’s been over a month into 2017, and there is already a sophisticated Gmail phishing email making it rounds. New techniques and tactics, have given hackers a way to authentically impersonate your contacts.How it Works The attack works by targeti…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
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…

813 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