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  

Record Relations



 
 
Thread Tools Display Modes
  #1  
Old August 27th, 2009, 10:03 AM posted to microsoft.public.access.tablesdbdesign
VainDM
external usenet poster
 
Posts: 10
Default Record Relations

hi is there a way of say having a list of records, and having a text box on
the list noting how many records are related to that one;

eg a list of products
product name; product number; qty

but then has a text box noting the number of materials related to the
product (if each material has its own record)
  #2  
Old August 27th, 2009, 12:21 PM posted to microsoft.public.access.tablesdbdesign
Mr. B[_4_]
external usenet poster
 
Posts: 171
Default Record Relations

What you want to do can be done. However, you would need to do this in a
form, not in a table. You would use the DCount function to get the counts
from the associated tables for any current product.

-----
HTH
Mr. B
http://www.askdoctoraccess.com/
Doctor Access Downloads Page:
http://www.askdoctoraccess.com/DownloadPage.htm


"VainDM" wrote:

hi is there a way of say having a list of records, and having a text box on
the list noting how many records are related to that one;

eg a list of products
product name; product number; qty

but then has a text box noting the number of materials related to the
product (if each material has its own record)

  #3  
Old August 27th, 2009, 03:29 PM posted to microsoft.public.access.tablesdbdesign
Steve[_77_]
external usenet poster
 
Posts: 1,017
Default Record Relations

It sounds like you need tables that look like:
TblProduct
ProductID
ProductName
ProductNumber
Qty

TblMaterial
MaterialID
Material

TblProductMaterial
ProductMaterialID
ProductID
MaterialID

For each product, TblProductMaterial would record each material related to
the product. A totals query based on TblProductMaterial with an appropriate
criteria for ProductID could then give you the total material items for any
selected product.

Steve




"VainDM" wrote in message
...
hi is there a way of say having a list of records, and having a text box
on
the list noting how many records are related to that one;

eg a list of products
product name; product number; qty

but then has a text box noting the number of materials related to the
product (if each material has its own record)



 




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 09:20 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.