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  

How to have one field be tied to multiple fields?



 
 
Thread Tools Display Modes
  #1  
Old March 17th, 2009, 01:43 PM posted to microsoft.public.access.tablesdbdesign
Norm
external usenet poster
 
Posts: 149
Default How to have one field be tied to multiple fields?

I need to track how many "New Households" my company brings in on a daily
basis and what products the "New Household" buys. I built 2 tables: a
customer table that included a place where my employees would input a "1" if
a customer was a new household & a product table to enter in the products
sales & amounts.

I used these two tables as forms with the "product" table being a subform to
the "customer" table. My problem is when I pulled a query for new
households, it was marking each product a newhousehold customer opened as a
new household giving me too many new households. Ex: If I inputted Joe Smith
as a new household and he opened 4 new products, my query would say I have 4
new households when really I have 1 new household. I'm I not pulling the
query correctly or do I need to input some kind of code to recognize what I
need. I am using Access 03 & have only been using it for little more than 2
months.

Please help. Thank you.
  #2  
Old March 17th, 2009, 02:58 PM posted to microsoft.public.access.tablesdbdesign
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default How to have one field be tied to multiple fields?

You need to post the SQL of your queries that feed the form/suform so folks
can see what you did.
--
KARL DEWEY
Build a little - Test a little


"Norm" wrote:

I need to track how many "New Households" my company brings in on a daily
basis and what products the "New Household" buys. I built 2 tables: a
customer table that included a place where my employees would input a "1" if
a customer was a new household & a product table to enter in the products
sales & amounts.

I used these two tables as forms with the "product" table being a subform to
the "customer" table. My problem is when I pulled a query for new
households, it was marking each product a newhousehold customer opened as a
new household giving me too many new households. Ex: If I inputted Joe Smith
as a new household and he opened 4 new products, my query would say I have 4
new households when really I have 1 new household. I'm I not pulling the
query correctly or do I need to input some kind of code to recognize what I
need. I am using Access 03 & have only been using it for little more than 2
months.

Please help. Thank you.

 




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:13 AM.


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