I'm slowly making my way through my project (this project being the first time
I've ever tried working with a DB - Access file in this case using VB.net
Standad). But now I've come to the part where I want to work on my 'visual'
output format to the end user.
The Access file is fixed and I can't modify it (which is too bad). But here
is what I want to (hope to) have:
The DB stores a Users weekly time sheet information. Each row represent a
single project, date of one day of the week, and the number of hours for that
project for that day. So a person could work on the same project each day and
have 5 rows of time sheet entries. Then etc. for any other projects they work
on that week.
The DB has 14 columns overall. I want to only display a couple of them. And
I want to add 7 additional columns (Saturday to Friday) to display calculated
project hour values (each day for that week). Just like a typical time sheet
would display... the Project + week days on ONE row.
I've the DataAdaptors, DataSets and Filters in place and working fine bounded
to a test DataGrid (just to see the raw data for now).
The number of rows can be anywhere from none... to (say) 30+... depending upon
the number of project the user worked on. A graphic display is thus:
Typical Raw DB data Record row I would use (uneccessary columns omitted here):
Project; WeekDate; DayHours; UserName; UserChargeOut
Project; WeekDate; DayHours; UserName; UserChargeOut
Project; WeekDate; DayHours; UserName; UserChargeOut
The typical Final output row would look something like:
Project; SatHrs; SunHrs; MonHrs; TuesHrs; WedHrs; ThurHrs; FriHrs
Project; SatHrs; SunHrs; MonHrs; TuesHrs; WedHrs; ThurHrs; FriHrs
Project; SatHrs; SunHrs; MonHrs; TuesHrs; WedHrs; ThurHrs; FriHrs
Then I'll need to know how to retrieve the five days original data lines when
a User clicks on one of the Final Output rows. This is so a user can
edit/delete a record set.
The two choices I believe I have is either a DataGrid or a ListView. Or...
should I have a blank Access file of all the columns I want... bind the
DataSet to it and work out on displaying my data?
I'm probably asking for too much here. I don't know. But I really MISS a lot
of the display methods that VB6 use to have :(
Any help is muchly appreciated. Hopefully I've explained it clearly enough.
Regards,
Bruce