Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 13th, 2005, 10:18 AM
Brent Taylor via AccessMonster.com
Guest
 
Posts: n/a
Default Need Help on MLM database in MS Access

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
  #2  
Old November 13th, 2005, 10:18 AM
Alan Webb
Guest
 
Posts: n/a
Default Re: Need Help on MLM database in MS Access

Brent,
It concept, it is a hierarchical data problem. Others here have solutions
different from the three I know about. Each solution to this problem has
its benefits and drawbacks. Study each one to decide which works best for
you.

Solution 1:
Single table joined to itself and modeling a one-to-many relationship
between a row in the table and other related rows in the same table.

Solution 2:
Two tables, one is the detailed information about each thing in the
hierarchy (sales representative in your case) and the other is a two column
list of primary keys from the first table that lists which thing in the
first table is related to the other and modeling a many-to-many relationship
between a row in the first table and another row in the first table.

Solution 3:
Two tables like Solution 2 but with as many columns as are needed in Table 2
to list each level of the hierarchy. This can make navigating the hierarchy
easier in some cases.

--
Alan Webb
knoNOgeek@SPAMhotmail.com
"It's not IT, it's IS"

"Brent Taylor via AccessMonster.com" <forum@nospam.AccessMonster.com> wrote
in message news:7efacfe252de4bc5a2c1e47dd1c14ecf@AccessMonste r.com...[color=blue]
>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[/color]


  #3  
Old November 13th, 2005, 10:19 AM
Brent Taylor via AccessMonster.com
Guest
 
Posts: n/a
Default Re: Need Help on MLM database in MS Access

Thank you for your response. I thought about the 3 items that you wrote but
I am not really sure how you mean to apply them.

Can you give me any further info?

Thank you.

--
Message posted via http://www.accessmonster.com
  #4  
Old November 13th, 2005, 10:20 AM
Alan Webb
Guest
 
Posts: n/a
Default Re: Need Help on MLM database in MS Access

Brent,
I replied elsewhere that this is not a simple problem. There are software
companies that sell packages which will do what you want. If you have more
time than money then I suppose choosing to try and make something would be
worth it. But be aware that custom software development can be a
hair-pulling and frustrating experience for client and developer alike.
You've got to have the stomach and balls for it.

--
Alan Webb
knoNOgeek@SPAMhotmail.com
"It's not IT, it's IS"

"Brent Taylor via AccessMonster.com" <forum@AccessMonster.com> wrote in
message news:573ed2b81e61478484aaabf25eb07224@AccessMonste r.com...[color=blue]
> Thank you for your response. I thought about the 3 items that you wrote
> but
> I am not really sure how you mean to apply them.
>
> Can you give me any further info?
>
> Thank you.
>
> --
> Message posted via http://www.accessmonster.com[/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles