M
macgyver
Hey everyone, looking for a little help with access/VB
Here's the situation.....
I have a database that tracks what people in my organization are
working on. The user enters their name and several other generic
things....then enters a number of "tasks" they did in a day, up to 6.
With each task, a release number, segment number(Which is a way to
break down the release) and hours worked associated with that release
and seg number, so for example we have...
release1
segnum1
hrs1
up to 6
What I am attempting to do is make a query then a report, via a table
that will query all six tasks for a particular release.
Here's the part that gets sticky....
If that Release is there, I need to take the hrs that are associated
with that task and add them to a running total of segment numbers for
that particular release.
In other words, today I worked on 4 tasks
task1 would be as follows
hrs = 2
Release = Mac
segnum = Design
task2,
hrs = 3
Release = MAC
segnum = Fabrication
task3,
hrs = 4
Release = Mac
segnum = Design
So what I need the query/vb script to do is say I'm looking for any
record associated with "Mac" So it finds "Mac" and says ok....well
there are two records, then it totals the time and segment numbers and
says on the Release "Mac" there was a total of 6 hrs spent on design
and then 3 on Fabrication.
Does anyone follow me?
I have worked with C and C++ and I can beat my way through VB but I
don't know the syntax that well and I don't know the variable prefixes
to make the form/access relations work. Don't even know if I should be
using something like SQL...
I'm really hoping for some help.....anything would greatly
appreciated.....
Thanks
Here's the situation.....
I have a database that tracks what people in my organization are
working on. The user enters their name and several other generic
things....then enters a number of "tasks" they did in a day, up to 6.
With each task, a release number, segment number(Which is a way to
break down the release) and hours worked associated with that release
and seg number, so for example we have...
release1
segnum1
hrs1
up to 6
What I am attempting to do is make a query then a report, via a table
that will query all six tasks for a particular release.
Here's the part that gets sticky....
If that Release is there, I need to take the hrs that are associated
with that task and add them to a running total of segment numbers for
that particular release.
In other words, today I worked on 4 tasks
task1 would be as follows
hrs = 2
Release = Mac
segnum = Design
task2,
hrs = 3
Release = MAC
segnum = Fabrication
task3,
hrs = 4
Release = Mac
segnum = Design
So what I need the query/vb script to do is say I'm looking for any
record associated with "Mac" So it finds "Mac" and says ok....well
there are two records, then it totals the time and segment numbers and
says on the Release "Mac" there was a total of 6 hrs spent on design
and then 3 on Fabrication.
Does anyone follow me?
I have worked with C and C++ and I can beat my way through VB but I
don't know the syntax that well and I don't know the variable prefixes
to make the form/access relations work. Don't even know if I should be
using something like SQL...
I'm really hoping for some help.....anything would greatly
appreciated.....
Thanks