- Joined
- 31 Dec 2003
- Posts
- 5,172
- Location
- Barrow-In-Furness
To get started here's the two tables i'm talking about. It's a timesheet application.
tblCodes
CodeID
CodeName
CodeDescription
CodeCategory
CodeOwner
CodeStatus
tblHours
ID
TimeCode
Date
Hours
Username
Comments
The problem is this, the CodeStatus field can be changed and that's mainly to stop people booking hours to projects that have completed or are on hold etc. It does however have a couple of different Status values that will allow someone to book hours to that code.
What I would like to do is when I start creating the reports, is to be able to report on the different status values for each code.
For example, the code may begin life with a value of "Initiation" and hours get booked to that, but it is then changes to 'In Progress'. I would like to be able to report on them seperately, at the moment it in not reflected in the hours table.
I'm thinking that if I just add another field to the hours table (TimeCodeStatus) and then somehow get the current status of the code when the user is inputting information, it should be fine?
The ASP part
If all the above sounds fine, how can I get this information into a TextBox within a DetailsView in input mode?
It's a little past what I know how to do so i'm looking for some advice, thanks for any help guys it is appreciated.

tblCodes
CodeID
CodeName
CodeDescription
CodeCategory
CodeOwner
CodeStatus
tblHours
ID
TimeCode
Date
Hours
Username
Comments
The problem is this, the CodeStatus field can be changed and that's mainly to stop people booking hours to projects that have completed or are on hold etc. It does however have a couple of different Status values that will allow someone to book hours to that code.
What I would like to do is when I start creating the reports, is to be able to report on the different status values for each code.
For example, the code may begin life with a value of "Initiation" and hours get booked to that, but it is then changes to 'In Progress'. I would like to be able to report on them seperately, at the moment it in not reflected in the hours table.
I'm thinking that if I just add another field to the hours table (TimeCodeStatus) and then somehow get the current status of the code when the user is inputting information, it should be fine?
The ASP part
If all the above sounds fine, how can I get this information into a TextBox within a DetailsView in input mode?
It's a little past what I know how to do so i'm looking for some advice, thanks for any help guys it is appreciated.

Last edited: