A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

junction tables and subforms - my brain is fried



 
 
Thread Tools Display Modes
  #1  
Old October 2nd, 2009, 10:47 PM posted to microsoft.public.access.tablesdbdesign
swooley
external usenet poster
 
Posts: 1
Default junction tables and subforms - my brain is fried

I am hoping someone can help me with my junction table issue. I have two
tables and a junction table already set up, and now I need to figure out the
best way to enter the information in a form/subform.

I have a "supplier" table and a "product" table. I have a "supplier_rates"
junction table with the "supplier" primary key, "product" primary key, and
fields for "price" and "price per unit". I would like to enter the data for
each supplier (ie price list) on the bottom of an existing form already
completed for supplier information (based on "supplier" table). What is the
best way to do so? I believe I need to create a subform based on the
"supplier_rates" table, but when I try this on my own I can't figure out how
to create a form that allows for multiple "products".

How can I create a subform that will allow for creation of a price list? Is
this an issue with the setup of the tables and am I missing a step? Or what
is a better alternative? Something that looks like a mini-spreadheet/table
for data entry is what I need....
--
swooley
  #2  
Old October 3rd, 2009, 02:57 AM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default junction tables and subforms - my brain is fried

On Fri, 2 Oct 2009 14:47:01 -0700, swooley
wrote:

I am hoping someone can help me with my junction table issue. I have two
tables and a junction table already set up, and now I need to figure out the
best way to enter the information in a form/subform.

I have a "supplier" table and a "product" table. I have a "supplier_rates"
junction table with the "supplier" primary key, "product" primary key, and
fields for "price" and "price per unit". I would like to enter the data for
each supplier (ie price list) on the bottom of an existing form already
completed for supplier information (based on "supplier" table). What is the
best way to do so? I believe I need to create a subform based on the
"supplier_rates" table, but when I try this on my own I can't figure out how
to create a form that allows for multiple "products".

How can I create a subform that will allow for creation of a price list? Is
this an issue with the setup of the tables and am I missing a step? Or what
is a better alternative? Something that looks like a mini-spreadheet/table
for data entry is what I need....


I think all you're missing is that the Subform, based on supplier_rates,
should be in "Continuous Forms" view. It would use the SupplierID as the
master/child link field (to display all that supplier's products and let you
add new ones), and would include a Combo Box based on the Products table to
add the product name; and have textboxes for the price and price per unit (if
indeed the price per unit isn't deriveable from the price...)

--

John W. Vinson [MVP]
 




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:06 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.