|
-
Apr 30th, 2006, 08:56 AM
#1
Thread Starter
Member
how to display data in a data report
hai, i have a table called attendance which contains Student ID, Date and Attendance as its fields. I want to display the record with particular date on the data report. How can i do this, please help me in this regard. Thank You.
-
May 5th, 2006, 01:52 PM
#2
New Member
Re: how to display data in a data report
The data report gets its record source from a data environment.
Set the data environment record source to something like this:
SELECT * FROM Attendance WHERE Attendance.Date = '01/01/2006'
If the particular date will change, and you may want to query the record source for different dates at different times, then you can try the following.
On a Form, add a TextBox named 'txtMyDate' and a CommandButton.
Change the above SQL statement to this:
SELECT * FROM Attendance WHERE Attendance.Date = txtMyDate
When the CommandButton is clicked at runtime, show the report.
Remember that since the report is getting this date from the Form, make sure the Form does not close, if you need to, then just hide the form.
Hope this helps,
Darrell
Whatsoever thy hand findeth to do, do it with thy might; for there is no work, nor device, nor knowledge, nor wisdom, in the grave, whither thou goest.
Ecclesiastes 9:10 (KJV)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|