A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Create a table based on another table.



 
 
Thread Tools Display Modes
  #1  
Old May 7th, 2009, 02:10 AM posted to microsoft.public.access
kjt
external usenet poster
 
Posts: 5
Default Create a table based on another table.

I may be in over my head. I am trying to create a table consisting of a
single field based on another table containing seven fields. I need to
combine all seven fields of the first table into the second table consisting
of a single 23 character field. The first table consists of over 5000
records. The second table will be used to upload into another database.

Thanks
  #2  
Old May 7th, 2009, 02:57 AM posted to microsoft.public.access
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Create a table based on another table.

On Wed, 6 May 2009 18:10:01 -0700, KJT wrote:

I may be in over my head. I am trying to create a table consisting of a
single field based on another table containing seven fields. I need to
combine all seven fields of the first table into the second table consisting
of a single 23 character field. The first table consists of over 5000
records. The second table will be used to upload into another database.

Thanks


It's neither necessary nor appropriate to create a second table for this
purpose. You can export a Query just as easily as you can export a Table.

You can create a query with a calculated field resembling

AllTogether: [Field1] & [Field2] & [Field3] & [Field4] & [Fieilf5] & [Field6]
& [Field7]

to just jam them all together as is. The result will depend on the nature of
the data - if each field contains just an integer 1, you'll just get a 7-byte
string "1111111", not a 23 character field. What's the nature of the data
you're concatenating? Could you post a sample of the seven field values and
the desired result?
--

John W. Vinson [MVP]
  #3  
Old May 7th, 2009, 03:07 AM posted to microsoft.public.access
Tom van Stiphout[_2_]
external usenet poster
 
Posts: 1,653
Default Create a table based on another table.

On Wed, 6 May 2009 18:10:01 -0700, KJT
wrote:

That's not a job for a new table, but for a new query. Something like:
select myField1 & "-" & myField2 & "-" & myField3 as myAggregateField
from myTable
(of course you change myObjectNames to yours)

-Tom.
Microsoft Access MVP


I may be in over my head. I am trying to create a table consisting of a
single field based on another table containing seven fields. I need to
combine all seven fields of the first table into the second table consisting
of a single 23 character field. The first table consists of over 5000
records. The second table will be used to upload into another database.

Thanks

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:38 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.