1ad3d Form design question - one more try
Sign Up |  Live StatsLive Stats    Articles 37,337| Comments 177,312| Members 19,419, Newest Nahluwalia| Online 539
Home Contact
 (Forgotten?): 
    Sikhism
    For best SPN experience, use Firefox Internet Browser!


                                                                   Your Banner Here!    




Click Here to Register/Sign Up Daily Hukamnama Member Blogs Downloads Website Navigation Help Fonts Tags

Form design question - one more try

Our Donation Goal : Why Donate? : Donate Today! : Donate Anonymously (ਗੁਪਤ) : Our Family of Supporters
Goal this month: 500 USD, Received: 115 USD (23%)
Please Donate...
     
Related Topics...
Thread Thread Starter Forum Replies Last Post
Question on Access 2000 Design Many-to-Many Relationship ? SergioArena Information Technology 1 28-Jul-2006 08:40 AM
Form / Table Design Jason Information Technology 3 28-Jul-2006 08:38 AM
changes in Table Design don't take in Form View Rich D Information Technology 4 28-Jul-2006 08:35 AM
MS access form design mode jest2 Information Technology 9 28-Jul-2006 08:11 AM
form design question hilz Information Technology 2 28-Jul-2006 08:08 AM


Tags
form, design, question, try
Reply Post New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!
  #1 (permalink)  
Old 28-Jul-2006, 08:08 AM
hilz's Avatar hilz
Guest
 
Posts: n/a
   
   
Form design question - one more try

  Donate Today!   Email to Friend  Tell a Friend   Show Printable Version  Print   Contact sikhphilosophy.net Administraion for any Suggestions, Ideas, Feedback.  Feedback  

Register to Remove Advertisements
Hi.
I asked this question before, and did not get any answers.
I hope someone will answer me this time!


I have the following two tables:

CONTRACT
********
ID (primary key)
CUSTOMER_ID1 (foreign key)
CUSTOMER_ID2 (foreign key)
CUSTOMER_ID3 (foreign key)
AMOUNT
some more columns...


CUSTOMER
********
ID (primary key)
NAME
some more columns...



I have a relation many-to-one from each of the three
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/information-technology/9966-form-design-question-one-more-try.html
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
CONTRACT.CUSTOMER_IDs to CUSTOMER.ID.

So each contract can have up to three customers.

I am having trouble displaying the customers in a contract form.
I tried with a subform but that does not work.
what can i do to display those three customers in the contract form?

thanks


Got anything to share on This Topic? Why not share your immediate thoughts/reaction with us! Login Now! or Sign Up Today! to share your views... Gurfateh!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 28-Jul-2006, 08:08 AM
Jeff Cox's Avatar Jeff Cox
Guest
 
Posts: n/a
   
   
Re: Form design question - one more try

hilz wrote:
> Hi.
> I asked this question before, and did not get any answers.
> I hope someone will answer me this time!
>
>
> I have the following two tables:
>
> CONTRACT
> ********
> ID (primary key)
> CUSTOMER_ID1 (foreign key)
> CUSTOMER_ID2 (foreign key)
> CUSTOMER_ID3 (foreign key)
> AMOUNT
> some more columns...
>
>
> CUSTOMER
> ********
> ID (primary key)
> NAME
> some more columns...
>
>
>
> I have a relation many-to-one from each of the three
> CONTRACT.CUSTOMER_IDs to CUSTOMER.ID.
>
> So each contract can have up to three customers.
>
> I am having trouble displaying the customers in a contract form.
> I tried with a subform but that does not work.
> what can i do to display those three customers in the contract form?
>
> thanks


First, I suggest that you remove the Customer_ID from the first table.
Then add a Contract_ID to the Customer Table. This will allow for more
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
than 3 customers if that ever happens.

Then build a form based on the Contract table. Add a subformcontrol to
the mainform with the Customer table as the recordsource. Make this
visible in Datasheet view if you like. Link them master-child as ID and
Contract_ID.

This will show all the customers in the subform when they contain the
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
same Contract ID as the contract ID in the mainform.

Hope this helps,

Jeff Cox
Reply With Quote
  #3 (permalink)  
Old 28-Jul-2006, 08:08 AM
hilz's Avatar hilz
Guest
 
Posts: n/a
   
   
Re: Form design question - one more try

Jeff Cox wrote:
> hilz wrote:
>> Hi.
>> I asked this question before, and did not get any answers.
>> I hope someone will answer me this time!
>>
>>
>> I have the following two tables:
>>
>> CONTRACT
>> ********
>> ID (primary key)
>> CUSTOMER_ID1 (foreign key)
>> CUSTOMER_ID2 (foreign key)
>> CUSTOMER_ID3 (foreign key)
>> AMOUNT
>> some more columns...
>>
>>
>> CUSTOMER
>> ********
>> ID (primary key)
>> NAME
>> some more columns...
>>
>>
>>
>> I have a relation many-to-one from each of the three
>> CONTRACT.CUSTOMER_IDs to CUSTOMER.ID.
>>
>> So each contract can have up to three customers.
>>
>> I am having trouble displaying the customers in a contract form.
>> I tried with a subform but that does not work.
>> what can i do to display those three customers in the contract form?
>>
>> thanks

>
> First, I suggest that you remove the Customer_ID from the first table.
> Then add a Contract_ID to the Customer Table. This will allow for more
> than 3 customers if that ever happens.
>
> Then build a form based on the Contract table. Add a subformcontrol to
> the mainform with the Customer table as the recordsource. Make this
> visible in Datasheet view if you like. Link them master-child as ID and
> Contract_ID.
>
> This will show all the customers in the subform when they contain the
> same Contract ID as the contract ID in the mainform.
>
> Hope this helps,
>
> Jeff Cox




But if I do that, then i will not be able to have more than one contract
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
for any given customer.
Ideally, I can have a join table that allows a many-to-many relation.
but that is an overkill, and will probably complicated the situation. I
don't really need more than 3 customers per contract, and I don't see
the need for that in my business process.

Actually, I am trying to create a report and not a form (I made a
mistake by saying a form), but it shouldn't be that much different i guess.

So after the subreport approach failed, I tried to create text boxes to
display properties of every customer, but i was not able to create a
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
query that can look up the values from the customer table based on a
given CONTRACT.CUSTOMER_IDx because the textbox "Control Source" allows
me to enter expressions and not queries.
I am sure I am missing something somewhere.
I hope someone can help!

thanks


the source
Reply With Quote
  #4 (permalink)  
Old 28-Jul-2006, 08:08 AM
Ron2006's Avatar Ron2006
Guest
 
Posts: n/a
   
   
Re: Form design question - one more try

possible way.

Create a work table
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
wrkTable
tlbContractID
tblCustomerID

To make the report

1) delete query to empty work table
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
2) append query to append Contract ID customer1 id if customer1id is
not null
3) append query to append contract id customer2id if customer2id is not
null
4) append query to append contract id customer3id if customer3id is not
null

Use this work table is the primary table to drive the report with the
real contract table and the customer table linked by contractid and
customerid

Reply With Quote
  #5 (permalink)  
Old 28-Jul-2006, 08:08 AM
hilz's Avatar hilz
Guest
 
Posts: n/a
   
   
Re: Form design question - one more try

Ron2006 wrote:
> possible way.
>
> Create a work table
> wrkTable
> tlbContractID
> tblCustomerID
>
> To make the report
>
> 1) delete query to empty work table
> 2) append query to append Contract ID customer1 id if customer1id is
> not null
> 3) append query to append contract id customer2id if customer2id is not
> null
> 4) append query to append contract id customer3id if customer3id is not
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
> null
>
> Use this work table is the primary table to drive the report with the
> real contract table and the customer table linked by contractid and
> customerid
>



But this wrkTable is the same as the join table i mentioned in my
previous post, which i am trying to avoid.
I don't really need a many-to-many relation between the customer and the
contract.
There are only 3 customers for any given contract, and creating a join
table is not really necessary, and will complicate things a bit.
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
My dilema is how to show these three customers that are related to a
given contract in the report of that contract.

thanks for any help
Reply With Quote
  #6 (permalink)  
Old 28-Jul-2006, 08:08 AM
Joseph Meehan's Avatar Joseph Meehan
Guest
 
Posts: n/a
   
   
Re: Form design question - one more try

hilz wrote:
> Ron2006 wrote:
>> possible way.
>>
>> Create a work table
>> wrkTable
>> tlbContractID
>> tblCustomerID
>>
>> To make the report
>>
>> 1) delete query to empty work table
>> 2) append query to append Contract ID customer1 id if customer1id
>> is not null
>> 3) append query to append contract id customer2id if customer2id is
>> not null
>> 4) append query to append contract id customer3id if customer3id is
>> not null
>>
>> Use this work table is the primary table to drive the report with the
>> real contract table and the customer table linked by contractid and
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
>> customerid
>>

>
>
> But this wrkTable is the same as the join table i mentioned in my
> previous post, which i am trying to avoid.
> I don't really need a many-to-many relation between the customer and
> the contract.


If I understand your data correctly you have a many to many relationship
in real life. I suggest that having the same in Access is the way to go.

> There are only 3 customers for any given contract, and creating a join
> table is not really necessary, and will complicate things a bit.
> My dilema is how to show these three customers that are related to a
> given contract in the report of that contract.
>
> thanks for any help


--
Joseph Meehan

Dia duit


Reply With Quote
  #7 (permalink)  
Old 28-Jul-2006, 08:08 AM
Ron2006's Avatar Ron2006
Guest
 
Posts: n/a
   
   
Re: Form design question - one more try

do it only for the report.

Another possible way.

In a query, put in your contract table then put in three customers. one
linked to each of the customer ids. That now gives you one query with
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
the customer information for each of the three customers.

Reply With Quote
  #8 (permalink)  
Old 28-Jul-2006, 08:09 AM
gee664@gmail.com's Avatar gee664@gmail.com
Guest
 
Posts: n/a
   
   
Re: Form design question - one more try

Use combo boxes, one for each CUSTOMER_IDs.

The Control Source for the combo box is CONTRACT.CUSTOMER_IDs and for
Row Source use your Customer table (select id, name from customer order
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
by name).

Reply With Quote
  #9 (permalink)  
Old 28-Jul-2006, 08:09 AM
hilz's Avatar hilz
Guest
 
Posts: n/a
   
   
Re: Form design question - one more try

  Donate Today!  
gee664@gmail.com wrote:
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
> Use combo boxes, one for each CUSTOMER_IDs.
>
> The Control Source for the combo box is CONTRACT.CUSTOMER_IDs and for
Reference:: Sikh Philosophy Network http://www.sikhphilosophy.net/showthread.php?t=9966
> Row Source use your Customer table (select id, name from customer order
> by name).
>


That is a great idea, and it worked in the form. Thanks.
Now what do i do in the report?
how do i show the three customers in a contract report?

a simple description as what you gave above is good enough.

thanks
Reply With Quote
   Click Here to Donate Now!

Support Us!
Become a Promoter!
Gurfateh ji, you can become a SPN Promoter by Donating as little as $10 each month. With limited resources & high operational costs, your donations make it possible for us to deliver a quality website and spread the teachings of the Sri Guru Granth Sahib Ji, to serve & uplift humanity. Every contribution counts. Donate Generously. Gurfateh!
ReplyPost New Topic In This Forum Stay Connected to Sikhism, Click Here to Register Now!

Bookmarks


(View-All Members who have read this thread : 0
There are no names to display.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Tools Search
Search:

Advanced Search
Display Modes

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 On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

» Active Discussions
Stockholm riots throw...
Today 21:14 PM
1 Replies, 2 Views
Transgenderism ... Right...
Today 20:37 PM
27 Replies, 1,296 Views
Biography of a Scholar:...
Today 18:59 PM
2 Replies, 156 Views
Request for assistance...
By Ishna
Today 18:46 PM
11 Replies, 151 Views
How does Sikhi help you...
Today 15:06 PM
36 Replies, 1,043 Views
Occultism - Rejection in...
Today 08:44 AM
62 Replies, 2,675 Views
‘Bigoted’ Facebook...
Today 08:32 AM
1 Replies, 70 Views
Australia mulls allowing...
Today 07:30 AM
0 Replies, 57 Views
Woolwich Killing: The...
Today 06:41 AM
3 Replies, 82 Views
Panjabi
By Ishna
Today 04:40 AM
16 Replies, 318 Views
Rozana Reports (ਪੰਜਾਬੀ...
Today 03:09 AM
316 Replies, 7,666 Views
Sikh Spokesman (ਪੰਜਾਬੀ...
Today 03:00 AM
179 Replies, 4,562 Views
Losing My Religion: Why...
Today 00:00 AM
14 Replies, 403 Views
Kirtan
Yesterday 21:24 PM
0 Replies, 45 Views
Keeping Amrit Vela
Yesterday 16:49 PM
12 Replies, 947 Views
» Books You Should Read...
Powered by vBadvanced CMPS v3.2.3
All times are GMT +6.5. The time now is 21:15 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2 Copyright © 2004-12, All Rights Reserved. Sikh Philosophy Network


Page generated in 0.49229 seconds with 32 queries
0