Solved

Query Exceeds limit for data in a single record

Posted on 2011-02-22
11
1,504 Views
Last Modified: 2012-05-11
I am getting an error message that states: "This form or report is based on a query that exceeds the limit for data in a single record." It prevents me from printing this report on a particular record. I can print it occassionaly, but I usually get this message. Does any one know what might be causing it and what would a potential solution be?
0
Comment
Question by:dlord54
11 Comments
 
LVL 119

Expert Comment

by:Rey Obrero
ID: 34953993
posting
the SQL statement of the query
name of table and field Data types

will help.

0
 
LVL 3

Expert Comment

by:xavixsb
ID: 34954075
Access 2007 has a limit of 255 number of fields in a recordset returned by a query

See:
http://blogs.office.com/b/microsoft-access/archive/2006/06/05/access-2007-limits.aspx

If other version of access the limit will be the same
0
 

Author Comment

by:dlord54
ID: 34954121
Attached is a file that has the SQL Statement and the table and field data types.
SQLandTableDefs.doc
0
 
LVL 51

Expert Comment

by:HainKurt
ID: 34954234
your issue is not 256 columns!
your issue is total number of chars for all columns exceeds max allowed size (I guess 2000 char per row)

either remove some columns from rows, or maybe you can convert some columns into memo...
0
 
LVL 51

Expert Comment

by:HainKurt
ID: 34954260
or you can divide that query into 2 queries and join with id on report... not sure how to do that...

I mean

select id, col1,col2,...,col140 from table

-->

select id, col1,col2,...,col169 from table

and this query,

select id, col71,col72,...,col140 from table

and on report somehow join id's and use columns from two query instead of 1


0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:dlord54
ID: 34954265
I tried converting some to memo, but that didn't seem to help. But I will see how many char per row I have.
0
 
LVL 51

Expert Comment

by:HainKurt
ID: 34954275
i guess you can use master/detail report and join with id...
0
 

Author Comment

by:dlord54
ID: 34954284
I will try that and see what happens.
0
 
LVL 51

Expert Comment

by:HainKurt
ID: 34954295
you can use Trim(...) function for all your text columns, it may help if they have trailing spaces...
0
 
LVL 51

Accepted Solution

by:
HainKurt earned 500 total points
ID: 34954337
Limits:

http://www.databasezone.com/techdocs/acclimit.html

Number of characters in a record (excluding Memo and OLE Object fields)  4,000; 2,000 for Access 2000 and 2002  
0
 

Author Closing Comment

by:dlord54
ID: 34955443
Thanks for your help. The record definitely exceeded the limit.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now