473,503 Members | 1,625 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

NEED HELP. MS ACCESS to do MLM Tracking

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
Nov 13 '05 #1
1 1426
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
Nov 13 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1437
by: Evelyn Pabón | last post by:
Hi I'm developing a database with access and I was ask to include in the report the date of issue. But if the date of issue was change It should be included in the footnote area the issue date...
0
3380
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
2
3497
by: Ian DeRock | last post by:
I'm fairly new to XML. As I can see it, XML is a way to organize data like in a table in a RDB, or the RDB itself. I have used XML in application data, but did not design the actual XML. I...
1
1420
by: JMCN | last post by:
is it possible to have two tables as field source in a form? for instance i created a query that concatenates the comments fields from two tables (see below). i can easily create a subform however,...
4
1946
by: JMCN | last post by:
hello i am not getting the correct percentage results from the following code. the "prelimpercent" variable = 0? why would that be the case when i try to divide numrecs by numrecs2? any advise...
6
1930
by: enak | last post by:
I need some help. I have a group of attorneys that need to be able to see the schedule of court dates. These dates are scheduled by the legal assistants. This is what I need: when a legal...
5
2921
by: HotRod | last post by:
I am new to this so please go easy. We currently have some students doing some work on some web based tracking documents for us. They are currently using VB .net to develop what we requested....
3
1645
by: perryclisbee via AccessMonster.com | last post by:
I have a query where I need all of the results to be assigned a single tracking number. Example: I run the query for all claims within a certain date parameter, for 10 different patient codes. ...
12
2456
by: Earl Anderson | last post by:
Recently, as I was 'flipping thru the TV channels', I heard some woman on a CSpan show 'chiding' the federal government for using MS Access for maintaining records on tracking something (I can't...
0
906
by: nkechifesie | last post by:
I was given a database program in Access to improve. This included enabling an exported table in excel which after update should be able to import back into the previous table. The issue is that the...
0
7188
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7258
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7313
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7441
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4987
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4663
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3156
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3146
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1489
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.