473,396 Members | 1,827 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,396 software developers and data experts.

Creation of a table with 300 fields. How?

Hello all! How are you?

I would like to create a table with 300 fields and it is not
possible in a simple way because access doesn't let you create a
database table bigger than 255 fields. Could I do that with a simple
QUERY? Or, if not, how could I do that?

Any help will be appreciated. Thanks for all,
Oscar
Nov 12 '05 #1
2 1460
"Obatistor" <ob*******@hotmail.com> wrote in message
news:ec**************************@posting.google.c om...
Hello all! How are you?

I would like to create a table with 300 fields and it is not
possible in a simple way because access doesn't let you create a
database table bigger than 255 fields. Could I do that with a simple
QUERY? Or, if not, how could I do that?


You can't. Queries have the same limit and "needing" to exceed that almost
always means your table structure is not properly designed. Other than
using a properly normalized table schema, the only other work-around is to
spread the fields over multiple tables with 1-to-1 relationships. You
still won't be able to combine them in a query for easy use in forms and
reports though.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #2
"Obatistor" <ob*******@hotmail.com> wrote in message
news:ec**************************@posting.google.c om...
Hello all! How are you?

I would like to create a table with 300 fields and it is not
possible in a simple way because access doesn't let you create a
database table bigger than 255 fields. Could I do that with a simple
QUERY? Or, if not, how could I do that?

Any help will be appreciated. Thanks for all,
Oscar

In a well-designed database there would never be any need to even approach
the limit of 255 fields per table. Normally when people say they need more,
they actually need a re-think of the table design.
E.g.
Twenty people are going on a diet program for a year and their weights are
recorded daily to monitor the progress. Some people might want to create a
table with fields FirstName, LastName, Dob, Weight1, Weight2, Weight3 ...
Weight356 so that the yearly mesurements could all be stored in one table.
A much better way to do this would be to have 2 tables:
tblPersons: PsnID, PsnFirstName, PsnLastName, PsnDob, etc
tblWeights: WgtID, WgtPsnID, WgtDate, WgtWeight

This has the added advantage that I can continue the trial over as many
years as I want without needing to change my table structure - so all my
forms, reports, code etc still work. If I had a fixed number of rows I
could not do this.

On this basis, can you see how to re-structure your data?

Fletcher
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: geoff | last post by:
The table creation script(at the end of this post) works fine on 4.0.1-alpha-win, but the foreign key constraints fail on 4.0.15-win. I am starting the server with the same command for both...
1
by: Paul | last post by:
Hey all Appologies for cross posting, but this post covers a few areas in one. I'm fairly new to XML and my ideas are over reaching my grasp (as well as possibly not fully understanding...
3
by: Mark | last post by:
Hi all, I am trying to add 4 fields to an existing table which will show record creation date and time and record update date and time. I have managed to do the creation date and time ok by adding...
13
by: Stuart McGraw | last post by:
I haven't been able to figure this out and would appreciate some help... I have two tables, both with autonumber primary keys, and linked in a conventional master-child relationship. I've...
2
by: surya | last post by:
hello all i want to create a phone table and it contains two fields empid ,ph. the phone table following format: Phone table ------------------------------------------ empid ph...
2
by: tricard | last post by:
Good day all, I am in the process of creating a form used to enter new purchase orders. The thing is that I do not want to bind the form to a record set; instead I will use a SQL insert...
2
by: sri20 | last post by:
Set tblNew_Cycle = db.CreateTableDef(New_Cycle_Name) 'Adding Fields to the Table tblNew_Cycle.Fields.Append tblNew_Cycle.CreateField("Test_Cycle", dbText) tblNew_Cycle.Fields.Append...
1
by: sweatha | last post by:
Dear Friends This is Sweatha. Right now I am working in the ASP.NET 2005 with VB coding & the back end is SQL SERVER 2000. My dilemma is I have to design a form with 2 DropDownListboxes. I...
2
by: =?Utf-8?B?bXVzb3NkZXY=?= | last post by:
Hi I've written some code to generate a CSV file from a database table. However, some colums are getting broken up into 2 fields, or truncated - I think cos they have comma in, and of course...
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...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.