Hi,
I don't know what i'm ding wrong. My crosstabquery is
PARAMETERS [forms]![f_paciente].[nid] Text ( 255 );
TRANSFORM
(IIf(IsNull(valor),IIf(IsNull(estado),coddiagnostico,estado),valor))
AS Expr1 ' coddiagnostico doesn't appear, i think becouse of the iif
function
SELECT q_aux_seguimento_pediatria_visualizar.coddiagnostico,
q_aux_seguimento_pediatria_visualizar.Estado,
q_aux_seguimento_pediatria_visualizar.Valor,
q_aux_seguimento_pediatria_visualizar.nid
FROM q_aux_seguimento_pediatria_visualizar
WHERE
(((q_aux_seguimento_pediatria_visualizar.nid)=[forms]![f_paciente].[nid]
))
GROUP BY q_aux_seguimento_pediatria_visualizar.coddiagnostico,
q_aux_seguimento_pediatria_visualizar.Estado,
q_aux_seguimento_pediatria_visualizar.Valor,
q_aux_seguimento_pediatria_visualizar.nid
ORDER BY Format([dataseguimento],"yyyy-mm-dd")
PIVOT Format([dataseguimento],"yyyy-mm-dd");
when i run the form it doesn't display nothing,
Duane said:
Set the Column Headings property of the crosstab to all possible column
heading values.
Another method is to set the source object property of the subform control
to the crosstab query. There is a sample of how to do this at
http://www.rogersaccesslibrary.com/OtherLibraries.asp#Hookom,Duane
DyamicSubfrm.mdb