Solved

Query Exceeds limit for data in a single record

Posted on 2011-02-22
11
1,601 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
11 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 55

Expert Comment

by:Huseyin KAHRAMAN
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 55

Expert Comment

by:Huseyin KAHRAMAN
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
 

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 55

Expert Comment

by:Huseyin KAHRAMAN
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 55

Expert Comment

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

Accepted Solution

by:
Huseyin KAHRAMAN 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

707 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