LOUISBUHAGIAR54
Registered User.
- Local time
- Today, 13:17
- Joined
- Mar 14, 2010
- Messages
- 157
I am trying to make a report on this crosstab query.
PARAMETERS [Forms]![Dispensing History]![Combo5] Text ( 255 ), [Forms]![Dispensing History]![Text2] DateTime;
TRANSFORM First(Query2.NurseID) AS FirstOfNurseID
SELECT Query2.Description, Query2.Dose, Query2.Frequency
FROM Query2
GROUP BY Query2.Description, Query2.Dose, Query2.Frequency
ORDER BY Query2.HIN
PIVOT Query2.HIN;
Basically Combo5 gives the idcard text of a patient from a combobox. Text2 gives the date when a drug is prescribed from a textbox on a form. NurseID is a unique ID 'text' to identify a particular nurse that dispenses a a particular group of medicines. The medicines are displayed as description,dose and frequency in the rows.
HIN is the time fraction of the Now() which is derived from a date/time field on a table.
The column headings themselves are the particular instances 'HIN' when medicines are given. There are several, ( around five) instances during the day when medicines are given. These column headings are dynamic as they change without any prediction according to the time of day when the drugs are dispensed. The crosstab query works as planned.
The problem is that when I try to make a report using the report wizard on this crosstab query, no fields appear.
There are two parameters that are declared.
I hope I have explained this problem clearly.
Can someone please give me some clues as to how I can solve this problem ?
PARAMETERS [Forms]![Dispensing History]![Combo5] Text ( 255 ), [Forms]![Dispensing History]![Text2] DateTime;
TRANSFORM First(Query2.NurseID) AS FirstOfNurseID
SELECT Query2.Description, Query2.Dose, Query2.Frequency
FROM Query2
GROUP BY Query2.Description, Query2.Dose, Query2.Frequency
ORDER BY Query2.HIN
PIVOT Query2.HIN;
Basically Combo5 gives the idcard text of a patient from a combobox. Text2 gives the date when a drug is prescribed from a textbox on a form. NurseID is a unique ID 'text' to identify a particular nurse that dispenses a a particular group of medicines. The medicines are displayed as description,dose and frequency in the rows.
HIN is the time fraction of the Now() which is derived from a date/time field on a table.
The column headings themselves are the particular instances 'HIN' when medicines are given. There are several, ( around five) instances during the day when medicines are given. These column headings are dynamic as they change without any prediction according to the time of day when the drugs are dispensed. The crosstab query works as planned.
The problem is that when I try to make a report using the report wizard on this crosstab query, no fields appear.
There are two parameters that are declared.
I hope I have explained this problem clearly.
Can someone please give me some clues as to how I can solve this problem ?