Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 19th, 2005, 06:14 AM
Registered User
 
Join Date: Jul 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default getting the un recorded

I'm working on a little attendance system.No record is entered for
absent . Now if I want to see who was absent ?
I've to display the absentees as well ..
does any body out there have a clue how to do this


 
Old July 19th, 2005, 06:47 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

I would enter a record for an absent person, this is how I would handle it.

1..I would have a table called status, design view:
Id (PK)
type (varchar)
inactive (bit)
View table content:
1 Present 0
2 Sick 0
3 Leave 0
4 Absent 0

2..Now in your main table where you record attendence details create a field called statusID (INT - no nulls) this is a forign key that relates to the status tables primary key (ID).

3..On your attendence web form select all entries from the status tble where inactive = false. choose and submit the appropriate status.

Wind is your friend
Matt









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.