473,397 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

design problem re linking communications to later orders

This is for a recreational tree climbing database. When a climb is arranged,
it often begins with one or more inquiries by phone or email. Sometimes it
takes several communications to answer questions, set dates, etc.

At some point an inquiry gets definite enough to become a JobProposal, with
a specific type of climb, dates and fee set, etc. Usually JobProposals
become Climbs when the inquirer signs a contract, pays the deposit or fee,
shows up and participates in the climb. So JobProposal can be a FK in the
Climbs table.

It's actually more complicated because sometimes the tree climbing
organization initiates a climb or course, and often groups and organizations
and families are involved. But my primary problem right now is the
relationship between a JobProposal and all those earlier communications.

Tracking the communications is doable. But by the time it's clear that an
inquirer is serious about a JobProposal, several earlier communications have
often gone back and forth. How to link those after the fact, to the
JobProposal? I guess the only real link is the name of the inquirer. Earlier
I thought the specific service(s) mentioned in the earlier inquiries could
be a link, but often the first inquiries are quite vague. "Could our family
come next month to do a climb?" No climb type mentioned.

Maybe these early, vague communications (and their answers) should be
ignored? Or for any JobProposal, be able to call up a list of all the
communications back and forth (with dates and subjects and notes) linked to
the person or persons involved? (Usually there's one main contact person,
but sometimes two people communicate independently about the same job.)

Sorry if my problem seems unclear. Maybe your questions will help me clarify
the problem and get unstuck. TIA
Nov 12 '05 #1
1 1481
Your Communcations table will have fields:
PersonID foreign key to the person table;
ProposalID foreign key to the proposal.

When a person contacts you, you will enter them into the Person table, and
then use their PersonID in the Communcations table. If the communication is
not yet part of a proposal, you will leave the ProposalID foreign key blank.
Later, when you do create a proposal, you want to go back and manually
modify the earlier communications by including the ProposalID.

If that's the idea, the important bit is providing an interface where the
user can easily find the communications from this person that are not tied
to any proposal. That means providing some kind of filter on the
communications form.

Perhaps you could include an unbound combo box named cboFindPerson at the
top of the form.
Set its After Update property to
[Event Procedure]
Click the Build button (...) beside this.
Access opens the code window.
Between the "Private Sub..." and "End Sub lines enter:

Dim strWhere As String
If Me.Dirty Then 'Save before filter
Me.Dirty = False
End If
If IsNull(Me.cboFindPerson) Then
Me.FilterOn = False 'Noone chosen: show all.
Else
strWhere = "([PersonID] = " & Me.cboFindPerson & _
") AND ([ProposalID] Is Null)"
Me.Filter = strWhere
Me.FilterOn = True
End If
Note: If PersonID is a Text type field, you need extra quotes:
strWhere = "([PersonID] = """ & Me.cboFindPerson & _
""") AND ([ProposalID] Is Null)"

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Catherine Jo Morgan" <cj******@hemc.net> wrote in message
news:W_********************@hemc.net...
This is for a recreational tree climbing database. When a climb is arranged, it often begins with one or more inquiries by phone or email. Sometimes it
takes several communications to answer questions, set dates, etc.

At some point an inquiry gets definite enough to become a JobProposal, with a specific type of climb, dates and fee set, etc. Usually JobProposals
become Climbs when the inquirer signs a contract, pays the deposit or fee,
shows up and participates in the climb. So JobProposal can be a FK in the
Climbs table.

It's actually more complicated because sometimes the tree climbing
organization initiates a climb or course, and often groups and organizations and families are involved. But my primary problem right now is the
relationship between a JobProposal and all those earlier communications.

Tracking the communications is doable. But by the time it's clear that an
inquirer is serious about a JobProposal, several earlier communications have often gone back and forth. How to link those after the fact, to the
JobProposal? I guess the only real link is the name of the inquirer. Earlier I thought the specific service(s) mentioned in the earlier inquiries could
be a link, but often the first inquiries are quite vague. "Could our family come next month to do a climb?" No climb type mentioned.

Maybe these early, vague communications (and their answers) should be
ignored? Or for any JobProposal, be able to call up a list of all the
communications back and forth (with dates and subjects and notes) linked to the person or persons involved? (Usually there's one main contact person,
but sometimes two people communicate independently about the same job.)

Sorry if my problem seems unclear. Maybe your questions will help me clarify the problem and get unstuck. TIA

Nov 12 '05 #2

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

Similar topics

0
by: Chris | last post by:
Hi, I am currently designing a simple service orders database. I have played around with MySQL a bit but this is the first time I'm using it in anger, I have a few design queries to make sure I am...
36
by: toedipper | last post by:
Hello, I am designing a table of vehicle types, nothing special, just a list of unique vehicle types such as truck, lorry, bike, motor bike, plane, tractor etc etc For the table design I am...
6
by: Kay | last post by:
Hello, My question isn't specific to .Net but as .Net is object oriented, I would be interested if someone could let me know if there is a standard way of implementing what I describe below in...
5
by: David Deacon | last post by:
Hi i was given the following advise,below my OriginalQuestion I am a little new to ADOX can you direct me to the following Do i place the code behind a button on a form? Or do i place it in the...
3
by: James Armstrong | last post by:
Hi all, (warning - long post ahead) I have been tasked with designing a database for my company which will store trade information (it is a financial firm). It will need to export this info...
6
by: rodchar | last post by:
Hey all, I'm trying to understand Master/Detail concepts in VB.NET. If I do a data adapter fill for both customer and orders from Northwind where should that dataset live? What client is...
16
by: rodchar | last post by:
Hello all, Please allow me to revisit this topic once more it has hindered me for the longest. Even after the great replies I got in the past. I guess they might have been a bit over my head or...
3
by: olduncleamos | last post by:
Hi all, What is, in general, the preferred practice to transfer data between business objects and the data layer? To be more specific, I have a couple of business objects with state data that...
4
by: KR | last post by:
Hi All, I wanted the expert opinion out there in the use of foreign keys as primary keys in a table. I am not very good at explaining this concept, but I am going to try - Let us say you...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.