473,387 Members | 1,891 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

how to create new table columns in access?

Hi there,

This may be a easy question, but I am an Access beginner and not very good at vba.

right now I have the data in the following format:

Expand|Select|Wrap|Line Numbers
  1. ASSET   HOLDING  STATUS  AMOT
  2. asset1      1      EGL     5
  3. asset1      1      UGL     6
  4. asset1      1      FVA     7
  5. asset1      4      EGL     8
  6. asset1      4      UGL     9
  7. asset1      4      FVA    10
  8. asset2      5      EGL    11
  9. asset2      5      UGL    12
  10. asset2      5      FVA    13
I want to split up the Status into 3 columns
Expand|Select|Wrap|Line Numbers
  1. ASSET   HOLDING  EGL  UGL  FVA
  2. asset1      1     5    6    7
  3. asset1      4     8    9   10
  4. asset2      5    11   12   13
I very much appreciate whoever can give me some advice. Thank you very much
Jan 24 '12 #1
8 1876
Rabbit
12,516 Expert Mod 8TB
Use a crosstab query for that, don't modify the table.
Jan 24 '12 #2
the problem is that this is my middle step. I need this table in new format to keep going on other steps
Jan 24 '12 #3
NeoPa
32,556 Expert Mod 16PB
That's not good thinking. Trust Rabbit on this one. You can always use a query pretty well anywhere you're thinking about using a table.
Jan 24 '12 #4
If you must do it, then create a crosstab query, save it, then create a make table query based on the saved crosstab query.
Jan 24 '12 #5
Rabbit
12,516 Expert Mod 8TB
But the thing is there's not really a need for a make table. Anything you need to do with a table, you can probably do with a query.
Jan 24 '12 #6
NeoPa
32,556 Expert Mod 16PB
Rabbit:
Anything you need to do with a table, you can probably do with a query.
That being the fundamental point.
Jan 24 '12 #7
except of course if you want to update the data, crosstab queries are not updateable
Jan 25 '12 #8
NeoPa
32,556 Expert Mod 16PB
That's true Chris, but we're working with an OP who isn't making the details very clear (probably because they don't appreciate what they need to do - no criticism), so we have to make intelligent guesses. It's very rare (though not entirely unheard of, of course) that people want to update data that is a direct result of processing other data.

Using the concepts of normalisation, one would suggest that any such changes should be made in the original data, rather than any derivative intermediate table, and re-derived. This (Normalisation theory) is also strong reasoning for suggesting that, except in extraordinary circumstances, the data is manipulated at source via queries rather than by duplicating the data (in a MakeTable query) for processing.

PS. I've noticed some helpful posts from you recently (today/yesterday) and want to welcome you to Bytes. Clearly you have something to offer the community, and I like your attitude already (Finding so many threads to contribute to in such a short space of time).
Jan 25 '12 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Rob | last post by:
Hi all, Quick question, how do you create a table in MS Access from with an asp script? I will be creating the table name from Request.querystring("name"), also needs fields of branchname...
1
by: utkanbir | last post by:
Hi , This is related to datawarehouse , data mining . We are told that data mining tools such as spss or sas , need a large table which has lots of columns inside . Based on our project , out...
1
by: danths | last post by:
Hello, I am being sent a fmt file and a data file without headers which I would like to import into my sql 2000 server. However the data files have couple of 100's of columns, how could I avoid...
6
by: Bruce | last post by:
I want to create a new table based on an existing table, but I don't want the tables to have any enforced relationship. Is this possible without having to do a CREATE TABLE and an INSERT? ...
1
by: Trevor Jackson | last post by:
Is there a limit on the number of columns that a table can have when you link to the table using Access 2000? Attempting to set up a link to an Oracle table that has 300+ columns - (reason for...
10
by: Minh | last post by:
I search in all the Disscussion but can not found. How can I create a MS Access Database file using C# code with a given Table Structure ? For example, I want to create a Access Database File...
2
by: jeet_sen | last post by:
Hi, I have created a table colelcting data from an XML source. After I built the whole table I ahve given user options to filter out columns from the table. For this I have collected all the...
4
by: nanabuch | last post by:
Hello, I am new to this forum, and I am a newbit in Oracle, I do have a background in MS Access, VBA, SQL server development and some Oracle backend development work. I have been giving a task...
5
by: Romulo NF | last post by:
Greetings, I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with...
2
by: zufie | last post by:
I am learning SQL using MS Access until I get SQL Server. I am trying to create a table that includes time and date columns. I receive the error: Syntax error in field definition. Here is my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.