WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Memo field truncating in report

 
   Home -> Office other -> Reports RSS
Next:  removing blank spaces from checkboxes and combo b..  
Author Message
Laurie

External


Since: Sep 30, 2004
Posts: 34



(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.

Help!
Back to top
Login to vote
Laurie

External


Since: Sep 30, 2004
Posts: 34



(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!
Back to top
Login to vote
Marshall Barton

External


Since: Dec 07, 2003
Posts: 6107



(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.

--
Marsh
MVP [MS Access]
Back to top
Login to vote
Dale Fye

External


Since: May 19, 2006
Posts: 461



(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:

ControlSource: = DLOOKUP("Comment", "yourTable", _
"ID = " & me.txt_ID & " AND " _
"[DateField] = #" & me.txt_Date &
"#")

--
HTH
Dale

Don''t forget to rate the post if it was helpful!

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!
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> Reports 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
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET