Solved

link fields in access

Posted on 2011-02-17
10
319 Views
Last Modified: 2012-05-11
Hi!
 I have a company that serves 2 type of services, I have a main form where I have customer information then I have a subform that there is a table where I enter witch service the customer is using (each service is a different record), then I have another subform where I enter additional information about the customer.
Now in the second form I have a field where I want to enter witch service is the customer registered for, if “service1” then it should be “service1”, if “service2”, then it should fill in the box “service2”, if both then it should be “both”

What’s the right way to get it done?
0
Comment
Question by:yoily
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 7
  • 3
10 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34919291
I'm confused.

1. If you fill in the Service records in the first subform, then why are you entering the services again in the second subform?
2. Can you post some specifics on this "additional information".
Is it related directly to the customer (if so, then why can't this be in the Customer table)
If not, then is this additional information in a One to many relationship to the customer?

Even though, I don't see the need to have the Services listed in this second form...?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34919353
...anything special to display if a customer is new, and has no services assigned yet?
Display: "No services assigned"
0
 

Author Comment

by:yoily
ID: 34919430
so there is no solution for it?
0
Create Professional Looking Email Signatures

Create "Professional HTML Email Signatures" with ease.
7 Day Money Back Guarantee if not 100% Satisfied.
Affordable - Try it out for 7 Days Totally Risk Free.
Installers provided for over 45 Email clients.
Both Windows & MAC Supported.
Highly Recommended!

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34919897
"so there is no solution for it?"
I don't know, ...perhaps

The way I see this being done, ...yes... there is a solution.

You did not answer any of my questions, so I am not sure if this is possible with your setup...
0
 

Author Comment

by:yoily
ID: 34919933
i dont understand your question! thats the way i want it i need it for filling out a specific form
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 34920832
Are you saying that you won't even take a moment to explain what the "additional info" is?
Or explain why you need to enter the Services again in the "Other" form?
Yes or no?

The way I see it you only need two forms.
The Customer form and the Services subform.
You can use a function on the main form to display what the Customers "Service status" is...

In the big picture, you can have whatever design you want (as many forms as you like), but it seems to me that the main thrust of your Question was to display the "Service Status" for each customer automatically.

Using a function this is easily accomplished, however I am using the standard Junction table (Many-to-Many) design structure as the basis for my example.

I am not sure of your design's structure so I cannot be sure if my solution is applicable in your case.

See the attached screenshots of my approach.


JeffCoachman
untitled1.JPG
untitled2.JPG
untitled3.JPG
0
 

Author Comment

by:yoily
ID: 34920923
ok thats exactly what i want,
so how can i do it?
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34921081
See attached sample file.

You will have to study it carefully and either adapt it to work in your database, or move your data into my sample.
Access-EEQ26828698JunctionTableF.mdb
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34921956
the code in the first sample was a bit "sloppy", so see this instead
Access-EEQ26828698JunctionTableF.mdb
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 35285947
;-)
0

Featured Post

Create Professional Looking Email Signatures

Create "Professional HTML Email Signatures" with ease.
7 Day Money Back Guarantee if not 100% Satisfied.
Affordable - Try it out for 7 Days Totally Risk Free.
Installers provided for over 45 Email clients.
Both Windows & MAC Supported.
Highly Recommended!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question