(Msg. 1) Posted: Tue Sep 02, 2008 1:53 pm
Post subject: Memo field truncating in report Archived from groups: microsoft>public>access>reports (more info?)
I have a problem with a memo field truncating in a report.
The field originates from a query designed to return the "last comment".
The base table contains multiple entries for each entity, with date/time
fields for each entry. The query returns the max date and comment. This
query is then nested into another to return the max time (for that date).
The SQL for the report links this query to the entity table to obtain entity
detail accompanied by the most recent comment.
I've verified none of the underlying queries are grouping by the memo field
and properties of the field and detail section are all set to "can grow".
When I display the results of from the SQL, the memo field is NOT truncated -
however - it IS on the report.
(Msg. 2) Posted: Tue Sep 02, 2008 1:58 pm
Post subject: RE: Memo field truncating in report [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
I should have noted that the Entity table is linked to this query one to many
(there could be entities without comments....). Not sure if this is causing
the problem?
"Laurie" wrote:
> I have a problem with a memo field truncating in a report.
>
> The field originates from a query designed to return the "last comment".
> The base table contains multiple entries for each entity, with date/time
> fields for each entry. The query returns the max date and comment. This
> query is then nested into another to return the max time (for that date).
>
> The SQL for the report links this query to the entity table to obtain entity
> detail accompanied by the most recent comment.
>
> I've verified none of the underlying queries are grouping by the memo field
> and properties of the field and detail section are all set to "can grow".
> When I display the results of from the SQL, the memo field is NOT truncated -
> however - it IS on the report.
>
> Help!
(Msg. 3) Posted: Tue Sep 02, 2008 6:25 pm
Post subject: Re: Memo field truncating in report [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Laurie wrote:
>I have a problem with a memo field truncating in a report.
>
>The field originates from a query designed to return the "last comment".
>The base table contains multiple entries for each entity, with date/time
>fields for each entry. The query returns the max date and comment. This
>query is then nested into another to return the max time (for that date).
>
>The SQL for the report links this query to the entity table to obtain entity
>detail accompanied by the most recent comment.
>
>I've verified none of the underlying queries are grouping by the memo field
>and properties of the field and detail section are all set to "can grow".
>When I display the results of from the SQL, the memo field is NOT truncated -
>however - it IS on the report.
If the report's record source query returns the untruncated
memo field, then the only other reason I am aware of is the
memo's text box has something in its Format property.
It shouldn't be possible, but also check that the memo field
is not used in Sorting and Grouping.
(Msg. 4) Posted: Wed Sep 03, 2008 10:35 am
Post subject: RE: Memo field truncating in report [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
> I've verified none of the underlying queries are grouping by the memo field
If the memo field is included in any of the aggregate queries, it will get
truncated.
Generally, I'll create a query that identifies the last comment or something
like this:
SELECT T2.*
FROM yourTable as T2
INNER JOIN (SELECT ID, Max(DateField) as LatestComment
FROM yourTable
GROUP BY ID) as T
ON T.ID = T2.ID
AND T.LastestComment = T2.DateField
Can you post the SQL of the report and any of the queries it uses.
Another way to approach this might be to use a DLOOKUP statement in the
ControlSource of the memo textbox (on the report), rather than binding that
textbox to a field in the query. Something like:
email address is invalid
Please reply to newsgroup only.
"Laurie" wrote:
> I have a problem with a memo field truncating in a report.
>
> The field originates from a query designed to return the "last comment".
> The base table contains multiple entries for each entity, with date/time
> fields for each entry. The query returns the max date and comment. This
> query is then nested into another to return the max time (for that date).
>
> The SQL for the report links this query to the entity table to obtain entity
> detail accompanied by the most recent comment.
>
> I've verified none of the underlying queries are grouping by the memo field
> and properties of the field and detail section are all set to "can grow".
> When I display the results of from the SQL, the memo field is NOT truncated -
> however - it IS on the report.
>
> Help!
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum