Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / July 2007

Tip: Looking for answers? Try searching our database.

Questioning my form design.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dustin - 19 Jul 2007 14:06 GMT
I am questioning my design of the form. I am doing a call tracking form for
customers. I have it set up to search for the customer in a couple of ways 1)
a combo box with all the phone numbers 2) a combo box with Last Names. The
Combo Boxes are recordset cloned on AfterUpdate.

My problem is that my main form is based on my customer table and I don't
want to add a record to that form only filter it. So I can't put a subform on
it because of the Master and Child Links.

So how do I filter the customer form and add the cust info to another form
that is not connected? Any thoughts appreciated.

Thanks Dustin
Klatuu - 19 Jul 2007 15:20 GMT
Your question is not quite clear, Dustin.  Do you mean you have one form for
finding a customer, but you want to be able to add a new customer using a
different form?
Or is it you want to record call info on an existing customer with a
different form?
Can you describe in more detail, please.
Signature

Dave Hargis, Microsoft Access MVP

> I am questioning my design of the form. I am doing a call tracking form for
> customers. I have it set up to search for the customer in a couple of ways 1)
[quoted text clipped - 9 lines]
>
> Thanks Dustin    
Dustin - 19 Jul 2007 18:00 GMT
I want to record the call info on an existing customer. I want to be able to
filter the customer info so my coworkers can see the what options he selected
for his machine. When they find him I want to display the customer info on
the Call info form. Any suggestions? Thanks for responding.

> Your question is not quite clear, Dustin.  Do you mean you have one form for
> finding a customer, but you want to be able to add a new customer using a
[quoted text clipped - 16 lines]
> >
> > Thanks Dustin    
John W. Vinson - 19 Jul 2007 17:17 GMT
>I am questioning my design of the form. I am doing a call tracking form for
>customers. I have it set up to search for the customer in a couple of ways 1)
[quoted text clipped - 7 lines]
>So how do I filter the customer form and add the cust info to another form
>that is not connected? Any thoughts appreciated.

Well, first off - you DON'T want to "add the cust info" to any other table.
The name, phone, etc. should be stored once and once only in the customer
table.

Could you explain what you mean by "recordset cloned on AfterUpdate"?

You can put unbound combo boxes (say in the form header) to filter the form.
The Combo Box toolbox wizard will set this up for you - just choose the option
"use this combo to find a record".

            John W. Vinson [MVP]
Dustin - 20 Jul 2007 00:34 GMT
I will explain myself better. I have a form based off my customer table with
the search combo boxes you suggested. I wanted to add a subform with the call
information on it. I wanted to display (not record) some of the customer info
from the main form on to the subform after the customer was selected. But I
realized a problem. If I insert a subform there has to be master and child
links that match each other. Which means records on the main form would have
to be added. But I don't want to do that. I just want to search the main
form.

If there is a better way please let me know. I hope this cleared it up.

Thanks for responding, Dustin

> >I am questioning my design of the form. I am doing a call tracking form for
> >customers. I have it set up to search for the customer in a couple of ways 1)
[quoted text clipped - 19 lines]
>
>              John W. Vinson [MVP]
John W. Vinson - 20 Jul 2007 01:02 GMT
>I will explain myself better. I have a form based off my customer table with
>the search combo boxes you suggested. I wanted to add a subform with the call
[quoted text clipped - 4 lines]
>to be added. But I don't want to do that. I just want to search the main
>form.

I don't understand.

If you search for a record on the mainform, and use the customer ID as the
master/child link field so that the subform is displaying calls for that
customer, you do NOT need to add any records on the main form. You *find* the
customer's record on the main form - that establishes the master link field;
the subform will automatically display just that customer's calls.

Why do you feel that "records on the main form would have to be added"? Or do
you want to record calls made by a customer, before any record for that
customer exists? If so, how on Earth can you tell what customer it is?

And why do you need to display the customer name on BOTH the mainform and also
the subform? They're both on screen at the same time - the name is *right
there in plain sight*.

            John W. Vinson [MVP]
Dustin - 20 Jul 2007 16:38 GMT
Thanks for responding.

Ok, I understand what you are saying. See, I thought that a new record had
to be made on the new form from my previous experience with subforms. But now
I understand that they don't. I will try what you said with the subform.

To answer your question of why do I want display customer info in the
subform. Is because I want to be able to query the subform table and be able
to identify whether certain size machines are having problems. If they are
how many and so forth.

I would appreciate any other comments or ideas. Sorry for the confusion I am
pretty new at this.

Thanks Dustin

> >I will explain myself better. I have a form based off my customer table with
> >the search combo boxes you suggested. I wanted to add a subform with the call
[quoted text clipped - 22 lines]
>
>              John W. Vinson [MVP]
John W. Vinson - 20 Jul 2007 19:50 GMT
>Thanks for responding.
>
[quoted text clipped - 9 lines]
>I would appreciate any other comments or ideas. Sorry for the confusion I am
>pretty new at this.

If you need  a query with criteria from both tables, base the query on both
tables.

Storing data redundantly in the child table is NOTHING BUT TROUBLE and will be
of *no* benefit.

You have the customerID in the child table, so you can create a Query joining
it to the customer table. This gives you all of the fields in both tables,
available for display, searching, or sorting. Copying the field from the main
table into the child table just opens a huge opportunity for having WRONG data
in one table or the other.

            John W. Vinson [MVP]
Dustin - 20 Jul 2007 23:38 GMT
Thanks again John

Dustin

> >Thanks for responding.
> >
[quoted text clipped - 23 lines]
>
>              John W. Vinson [MVP]
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.