Search code examples
ms-accesstruncatememo

Access 2010 query truncates memo field


I have the following query in access used in a report for data selection. It works except that it truncates the What_happened field.

The sql database has the what_happened field as a nvarchar(max) - access 2010 see's it as a memo field.

I need to be able to see the full contents of the what_happened field on the report form

Thank you,

Steve

SELECT DISTINCT dbo_all_clients_view.people_id,
                dbo_all_clients_view.full_name,
                dbo_event_log_shack.actual_date,
                dbo_all_clients_view.is_active_client,
                [dbo_all_clients_view query].policy_num,
                dbo_event_log_shack.event_log_id,
                dbo_all_clients_view.dob,
                dbo_event_log_shack.eventtime1,
                dbo_event_log_shack.is_deleted,
                dbo_event_log_shack.staff_name,
                dbo_event_log_shack.staff_supervisor,
                cir_descrip_staff_resp.what_happened
FROM   cir_descrip_staff_resp
       RIGHT JOIN ((dbo_all_clients_view
                    LEFT JOIN dbo_event_log_shack
                           ON dbo_all_clients_view.people_id =
                              dbo_event_log_shack.people_id)
                   LEFT JOIN [dbo_all_clients_view query]
                          ON dbo_all_clients_view.id_no =
[dbo_all_clients_view query].dbo_all_clients_view_id_no)
ON cir_descrip_staff_resp.[event id] = dbo_event_log_shack.event_log_id
WHERE  (( ( dbo_event_log_shack.is_deleted ) = false ))
ORDER  BY dbo_all_clients_view.full_name,
          dbo_event_log_shack.actual_date DESC; 

Solution

  • A great many things cause memo fields to be truncated. In a report, you can DlookUp the memo or use another query to get the full text.

    There is a pretty good list of possible reasons here: http://allenbrowne.com/ser-63.html