Problem is tht where i want absent and present Or leave
the report shows me one "1" OR "0" tht is because summarize field can only show numerical value..
i had tried enough also used "Display string" property
i want status as absent/present/leave insted of numerical value
one thing i want to mentioned tht status is stored in
my database table and its field name is student_attendance.status..
Joined: 04 Feb 2008
Location: New Zealand
Online Status: Offline
Posts: 55
Posted: 27 Sep 2010 at 12:04pm
I assume the database contains only one status for each student on a each day - a student cannot be present and absent on the same day. If so, your query needs to include the status description absent/present/leave. Otherwise create a formula to output the status description based on the status ID number. In your Crosstab Expert put in the values: - Rows: Std_Reg_No - Columns: Date (group by day) - Summarized field: Max(attendance status)
Even though each cell will only have one record, you must use a summary function. Max() will work for string fields, and will show the description you want.
Max() function will also return numerical value while i want string value and it also show "Present/Absent/Leave" bt it is not show in correct position
what i want to say is
student 256541 is leave at 2-jan bt report show it as abent... idont know whyyy
my code is........(this is on show string formula of summarize field)
'------------
if currentfieldvalue=1 then
formula={Student_Absent.Status}
else
formula="P"
end if
'-----------
while {Student_Absent.Status} is a database field which only found in table if any student is absent or leave...
actual problem is
crystal report padding the very 1st value of {Student_Absent.Status} it found in table
i want to share one thing possible it help u to make some solution ..
when i use this code
(this is on show string formula of summarize field)
'------------
if currentfieldvalue=1 then
formula={Student_Absent.Status}
else
formula="P"
end if
'-----------
it is not changing the status between "Absent OR Leave"
and doing work for "Present" perfectly ..
what crystal report doing exactly the very 1st record it found in databse padding it in all status for every student on each day ..
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum