Microsoft
Software
Hardware
Network
Question : Repeating Rows when adding a field
Hello:
I need to retrieve a project Number for each payment paid in advance. An event is taking place today and I need to allocate every
advanced payment to a project Number.
I am getting 3 rows for every amount instead of one but only when I add the project Number. If I take it out I get the right result.
The three results represents the 3 records under a hierarchy. I am getting the 3 projectnumbers belonging to the parent
instead of only the one or two that represent the sale for that projectNumber. The tables relationships are as follows:
ProjectTable
ProjectNumberID Name ProjectNumber ParentID
350001 Casting 4000 350005
350005 AllCasting 20000 0
350006 Rehearsal 4010 350005
350007 Show 4020 350005
//////////////////////////
//////////
//////////
//////////
///
ProgramTable
ProgramID ProjectNumberID EventNumber
100001 350001 5
100002 350001 5
100003 350006 6
//////////////////////////
//////////
//////////
//////////
///
EventTable
EventID ProgramID
5 100001
6 100001
7 100002
//////////////////////////
//////////
//////////
//////////
//
TransactionTable
TransactionID SaleID EventID Amount
1 10 5 136.00
2 11 5 20.00
//////////////////////////
//////////
//////////
//////////
//
SaleTable
SaleID Arrival SaleDateTime
10 '2010-06-22 05:30:00' '2010-01-25 01:00:00'
11 '2010-06-22 05:30:00' '2010-02-15 02:00:00'
//////////////////////////
//////////
//////////
//////////
//
PaymentTable
PaymentID SaleID PaymentDateTime Amount
101 10 '2010-01-25 01:00:00' 136.00
102 11 '2010-02-15 02:00:00' 20.00
I am getting the 3 project numbers with the same parent if I include the projectNumber.
I think is the way I am linking the programTable to the ProjectTable.
Any help would be appreciated.
Answer : Repeating Rows when adding a field
possibly add:
service dhcp
Billy
Random Solutions
MS Outlook 2010 automatic backup add in
Keeping the orginal message when replying using a ThunderBird Email Template
ACCESS IMPORT MS EXCEL FILE
my computer is slow!!!
Dell Studio 1535 and upgrading (downgrading) to XP Pro
Corsair Hydro Cooling H50 vs. CoolIt ECO A.L.C. vs. Performance air cooling
the text you entered isn't a item in the list-problem in access form
Trouble installing software
Need a quick app/script to compare two large folders for differences (and list/log them)
query to find days over 30 since event