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 » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

adding new columns



 
 
Thread Tools Display Modes
  #1  
Old May 27th, 2010, 11:01 PM posted to microsoft.public.access.queries
joemeshuggah
external usenet poster
 
Posts: 77
Default adding new columns

what is the best way to go about doing this?

i just created a report that first runs a query for current month info in
teradata sql assistant and exports to a text file that is linked to an access
database. i then use an update query to delete the current month info from
the main table in access (prior months are left untouched), and then run an
append query to append the current month data from the text file to the main
table.

there is now a need for two additional columns. i modified my teradata
queries to incorporate the new columns and relinked the text file.

my question is, what is the best way to update the main table with the new
columns?

i initially thought i could modify the teradata query to pull only the new
column information historically, export to a text file, insert two new
columns into the main table (updating to show them as 0 instead of null),
import the text file information, and then use a make table query to
aggregate the information (to shrink the number of records). when i did
this, though, the data types for my long integer fields changed to double (i
cannot change them back) and the file size ballooned.

i know i can leave the appended records for the new columns as is and live
with more records due to the incorporation of the data for the two new
columns, but i would think that shrinking the number of records by
aggregating would reduce the file size...especially since the main table is
linked to a pivot table in excel.
 




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 11:24 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.