Link to home
Start Free TrialLog in
Avatar of dlord54
dlord54

asked on

Query Exceeds limit for data in a single record

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?
Avatar of Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1)
Flag of United States of America image

posting
the SQL statement of the query
name of table and field Data types

will help.

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
Avatar of dlord54
dlord54

ASKER

Attached is a file that has the SQL Statement and the table and field data types.
SQLandTableDefs.doc
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...
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


Avatar of dlord54

ASKER

I tried converting some to memo, but that didn't seem to help. But I will see how many char per row I have.
i guess you can use master/detail report and join with id...
Avatar of dlord54

ASKER

I will try that and see what happens.
you can use Trim(...) function for all your text columns, it may help if they have trailing spaces...
ASKER CERTIFIED SOLUTION
Avatar of HainKurt
HainKurt
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dlord54

ASKER

Thanks for your help. The record definitely exceeded the limit.