我在报告中用于数据选择的访问中有以下查询。除了截断 What_happened 字段外,它可以工作。
sql 数据库将 what_happened 字段作为 nvarchar(max) - 访问 2010 将其视为备注字段。
我需要能够在报告表单上看到 what_happened 字段的全部内容
谢谢,
史蒂夫
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;