| | |
Include datafield into the section 4 of the Datareport
![]() |
•
•
Join Date: Jun 2006
Posts: 11
Reputation:
Solved Threads: 0
Dear all,
i created a vb project for faculty evaluation. for that i also created a database in MS Access. Now I want to include one of the field in table into the section 4 of the datareport. is it possible?. if yes what will be the code. below i explain with an eg.
in the table the fields are faculty_code, faculty_name,Batch,session etc..
there are 40 students in a class they give a particular mark to a faculty say 'A'. there is a form where the entire faculty list displayed. when any select the faculty name the report will dispaly.
i inserted the fields for the report in detail session. but now i want, the report name is like " Faculty Evaluation report of 'A' ".
is there any possibility ?
i created a vb project for faculty evaluation. for that i also created a database in MS Access. Now I want to include one of the field in table into the section 4 of the datareport. is it possible?. if yes what will be the code. below i explain with an eg.
in the table the fields are faculty_code, faculty_name,Batch,session etc..
there are 40 students in a class they give a particular mark to a faculty say 'A'. there is a form where the entire faculty list displayed. when any select the faculty name the report will dispaly.
i inserted the fields for the report in detail session. but now i want, the report name is like " Faculty Evaluation report of 'A' ".
is there any possibility ?
•
•
Join Date: Jun 2006
Posts: 11
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by Comatose
I'm sorry, I'm having a very hard time understanding what you are trying to accomplish. You have a database that stores information about the faculty, and you want to do what exactly with it?
ur right. i have database contains the faculty details. i want to retrive it back. for that i have created a datareport . and using the dataenvironment i set the connection and usind add command option i set the criteria. then i drag field from the command to the details section of the datareport. i got the results. but my problem i explained below with an eg.
my database named faculty contain the following fields: Slno Fname, Scode, Batch, Emark1, Emark2 ,Avg
there are 5 students and 2 faculties are in a batch.
each students evaluate each faculties.
letus assume that A & B are the faculties and they take the subjects as CMA & QNM respectively.
as per their evaluation the database contain the following details
Slno Fname Scode Batch Emark1 Emark2 Avg
1 A CMA B1 5 3 4
2 B QNM B1 4 1 3
3 A CMA B1 4 4 4
4 B QNM B1 3 3 3
5 A CMA B1 5 5 5
6 B QNM B1 4 5 4.5
7 A CMA B1 4 5 4.5
8 B QNM B1 5 3 4
9 A CMA B1 5 3 4
10 B QNM B1 4 1 3
there is a form. in that there is a combo box which containing the list of facultits. when i select one of the faculty (assume it as 'A') the report contains his details only. as per above records 5 records are shown in the report. i got it correctly. i typed the following code in the click event of the command button in the form.
DataEnvironment1.rsResult.Open "SELECT * FROM EResult where faculty='" & lblfacultyname & "'"
DataReport4.Orientation = rptOrientLandscape
DataReport4.Refresh
DataReport4.Show vbModal
DataEnvironment1.rsResult.Close
i got the result as follows
FACULTY EVALUATION RESULT OF
Fname Scode Batch Emark1 Emark2 Avg
A CMA B1 5 3 4
A CMA B1 4 4 4
A CMA B1 5 5 5
A CMA B1 4 5 4.5
A CMA B1 5 3 4
here u see that the facultyname is repeated for n times. i want to put the faculty name in section 4 ie. as report header. insted of
FACULTY EVALUATION RESULT OF i want
FACULTY EVALUATION RESULT OF A
this is my query is it clear for u. if yes then is ther any provosion?. again u can't understand give me ur email ID i will send my project.
thanking you
Vijesh
![]() |
Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: Reducing CPU usage
- Next Thread: generate unique numbers
| Thread Tools | Search this Thread |
* 6 2007 access activex add age basic beginner birth bmp calculator cd cells.find click client code college connection connectionproblemusingvb6usingoledb creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit excel excelmacro file filename form header iamthwee image inboxinvb internetfiledownload listbox listview liveperson login looping microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading remotesqlserverdatabase report save search sendbyte sites sql sql2008 sqlserver subroutine tags time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web windows






