Connecting Tech Pros Worldwide Forums | Help | Site Map

NEED HELP. MS ACCESS to do MLM Tracking

Brent Taylor via AccessMonster.com
Guest
 
Posts: n/a
#1: Nov 13 '05
I am working on a MS Access database to track the sales of a 3 Tier Multi-
level Marketing system.

I have created a table to track a new RepID and a SponsorID. I have created
a query that will show the Sponsor and all of their reps but I am not sure
how to show the reps that the second tier has sponsored.

Example:

RepID 0011 SponsorID 0010
RepID 0012 SponsorID 0010
RepID 0013 SponsorID 0010

The above is easy but I am not sure how to get:

RepID 0014 SponsorID 0013 and his SponsorID 0010

Does anyone have any idea of a good way to do this?

Thank you,

Brent

--
Message posted via http://www.accessmonster.com

David Seeto via AccessMonster.com
Guest
 
Posts: n/a
#2: Nov 13 '05

re: NEED HELP. MS ACCESS to do MLM Tracking


You need to build a query that links this tabe to itself, but mapping the
SponsorID to the RepID:

SELECT Rep.RepID, Rep.SponsorID, Sponsor.Sponsor ID
FROM SponsorTbl as Rep
INNER JOIN SponsorTbl as Sponsor ON Rep.SponsorID = Sponsor.RepID

--
Message posted via http://www.accessmonster.com
Closed Thread


Similar Microsoft Access / VBA bytes