Complex Table Design

M

mabedin

Hi,

DESCRIPTION
------------------------
I am trying to build a simple CRM solution on Ms Access.

I have a table where I have basic sales leads information such as customer's
name, address, and telephone number (tblContacts). I have made a relationship
with agents table (tblAgents).

tblContacts contains following fields:
ContactID (AutoNumber) AgentID (Number), ContactName (Text), ContactAddress
(Text), ContactTelephone (Text), LeadStatus (Yes/No)

tblAgents contains following fields:
AgentID (AutoNumber), AgentName (Text), AgentAddress (Text), AgentTelephone
(Text)

Supervisor has the authority to change the LeadStatus either make it active
or non-active for calling purposes. Furthermore, only supervisor can assign
the same customer to different agent. Only one agent can be assigned to one
customer.

INFORMATION
-----------------------
tblContacts is getting agents information from tblAgents.


NEED/WANT
--------------------
I need/want to do two things in the design.

1. I need/want to have a lead status (field_name: LeadStatus - YES/NO) If YES,
then lead is active to call. If NO, then lead is not active to call. ******I
have designed and tested this part.*******.

2. I need/want many agents to call one customer so that I can assign the same
lead to more than one agent. ********I can't figure it out how ot design
this part*******.

Please help. I would really appreciate.

Thank you
 
G

Guest

Hi mabedin,

If you need to link more than one Agent to a Contact, you will need to
simulate a many to many join by using a linking table like this:

tblContactAgentLead
ContactAgentLeadID - Autonumber
ContactID - Number - Maps to ContactID in tblContact
AgentID - Number - Maps to AgentID in tblAgent
Other Lead related tables as necessary.

This is how you would connect one Contact to many Agents for leads, but the
Contact is still assigned to a single Agent through the link in the
tblContact.

If you wanted multiple Agents assigned to each Contact, you could use a
similar design, but remove the AgentID in tblCustomer.

Hope that helps.

Damian.
 
J

Jamie Collins

I am trying to build a simple CRM solution on Ms Access.

I understand such software is now widely available - why reinvent the
wheel <g>?

Considerations: cost (is it really cost effective to
build/debug/test/maintain a bespoke solution rather than buy something
off the shelf? Are you performing CRM stuff like no one else in the
marketplace today?), risk (how long will your business be off-line
while you fix that forthcoming show-stopping bug?), you are asking for
help in a newsgroup and what appears to be a fundamental design issue
so are you qualified...? (see 'risk' above), etc.

Jamie.

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top