dbTalk Databases Forums  

too many fields defined

comp.databases.ms-access comp.databases.ms-access


Discuss too many fields defined in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Modest Marsupial
 
Posts: n/a

Default too many fields defined - 12-17-2004 , 04:01 PM






I keep getting a run-time error that 'too many fields are defined' (it
thinks there is more than 255, even when there is not). I looked this
problem up at
http://www.microsoft-accesssolutions...ds_defined.htm which
explained it somewhat, but their simple solution of compacting the database
does not help me avoid this error. Their other solution of normalizing the
database to the third normal form is not practical for me (the database
isn't my creation to begin with and I'm very short on time).

I am wondering if others get this error and what they do about it.

Thanks in advance, marie



Reply With Quote
  #2  
Old   
Rick Brandt
 
Posts: n/a

Default Re: too many fields defined - 12-17-2004 , 04:26 PM






"Modest Marsupial" <Marsupial (AT) mbg (DOT) com> wrote

Quote:
I keep getting a run-time error that 'too many fields are defined' (it
thinks there is more than 255, even when there is not). I looked this
problem up at
http://www.microsoft-accesssolutions...ds_defined.htm
which
explained it somewhat, but their simple solution of compacting the
database
does not help me avoid this error. Their other solution of normalizing
the
database to the third normal form is not practical for me (the database
isn't my creation to begin with and I'm very short on time).

I am wondering if others get this error and what they do about it.
In addition to the hard limit on the number of fields you can also get this
if the total size of a row exceeds a certain number of bytes (forget how
many specifically).

Not much you can do about it except break the table up.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com




Reply With Quote
  #3  
Old   
Bas Cost Budde
 
Posts: n/a

Default Re: too many fields defined - 12-17-2004 , 04:30 PM



Modest Marsupial wrote:
Quote:
I keep getting a run-time error that 'too many fields are defined' (it
thinks there is more than 255, even when there is not). I looked this
problem up at
http://www.microsoft-accesssolutions...ds_defined.htm which
explained it somewhat, but their simple solution of compacting the database
does not help me avoid this error. Their other solution of normalizing the
database to the third normal form is not practical for me (the database
isn't my creation to begin with and I'm very short on time).

I am wondering if others get this error and what they do about it.

Thanks in advance, marie
Does it go away if you copy the table, delete the original and rename
the copy? This can be awful if you have many relationships on the table...

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea


Reply With Quote
  #4  
Old   
Modest Marsupial
 
Posts: n/a

Default Re: too many fields defined - 12-17-2004 , 06:55 PM



But the tables aren't too big (less than 100 rows). That's what's driving me
crazy. I can't see what is causing Access to think there's something bigger
than there is.

Thanks for the reply.


marie


"Rick Brandt" <rickbrandt2 (AT) hotmail (DOT) com> wrote

Quote:
"Modest Marsupial" <Marsupial (AT) mbg (DOT) com> wrote in message
news:10s6lq91j8cj3fc (AT) corp (DOT) supernews.com...
I keep getting a run-time error that 'too many fields are defined' (it
thinks there is more than 255, even when there is not). I looked this
problem up at
http://www.microsoft-accesssolutions...ds_defined.htm
which
explained it somewhat, but their simple solution of compacting the
database
does not help me avoid this error. Their other solution of normalizing
the
database to the third normal form is not practical for me (the database
isn't my creation to begin with and I'm very short on time).

I am wondering if others get this error and what they do about it.

In addition to the hard limit on the number of fields you can also get
this
if the total size of a row exceeds a certain number of bytes (forget how
many specifically).

Not much you can do about it except break the table up.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com





Reply With Quote
  #5  
Old   
Modest Marsupial
 
Posts: n/a

Default Re: too many fields defined - 12-17-2004 , 06:57 PM



Bas Cost Budde,

It's a recordset that I'm using (kind of as an array ...I'm a C programmer,
so these "recordsets" are new to me), not a table. Should this matter?

Thanks for the reply,
marie


"Bas Cost Budde" <b.costbudde (AT) heuvelqop (DOT) nl> wrote

Quote:
Modest Marsupial wrote:
I keep getting a run-time error that 'too many fields are defined' (it
thinks there is more than 255, even when there is not). I looked this
problem up at
http://www.microsoft-accesssolutions...ds_defined.htm
which explained it somewhat, but their simple solution of compacting the
database does not help me avoid this error. Their other solution of
normalizing the database to the third normal form is not practical for me
(the database isn't my creation to begin with and I'm very short on
time).

I am wondering if others get this error and what they do about it.

Thanks in advance, marie

Does it go away if you copy the table, delete the original and rename the
copy? This can be awful if you have many relationships on the table...

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea



Reply With Quote
  #6  
Old   
Rick Brandt
 
Posts: n/a

Default Re: too many fields defined - 12-17-2004 , 07:51 PM



"Modest Marsupial" <Marsupial (AT) mbg (DOT) com> wrote

Quote:
But the tables aren't too big (less than 100 rows). That's what's driving me
crazy. I can't see what is causing Access to think there's something bigger
than there is.
What I said is that there is a size (bytes) limit *per row*. The number of rows
is irrelevant.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com




Reply With Quote
  #7  
Old   
Bas Cost Budde
 
Posts: n/a

Default Re: too many fields defined - 12-18-2004 , 01:45 AM



Modest Marsupial wrote:
Quote:
Bas Cost Budde,

It's a recordset that I'm using (kind of as an array ...I'm a C programmer,
so these "recordsets" are new to me), not a table. Should this matter?
A recordset is an object; it enables data access. It has a source that
is either a table or some query returning records. Other database
systems call such an object a cursor, maybe that term runs associations
with you?

You can consider a recordset an array, to some extent. It will have an
item for every field in the record; it is close to two-dimensional in
the sense that you have more records in the recordset, but can address
only one at a time.

The Name property of the recordset will show you how it was created,
i.e. on a table, query (as saved object) or a SQL statement. You can
then inspect the structure of that source.

->Could a crosstab query yield too many fields?

--
Bas Cost Budde, Holland
http://www.heuveltop.nl/BasCB/msac_index.html
I prefer human mail above automated so in my address
replace the queue with a tea


Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.