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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Relationships for queries



 
 
Thread Tools Display Modes
  #1  
Old October 26th, 2008, 10:29 PM posted to microsoft.public.access
[email protected]
external usenet poster
 
Posts: 37
Default Relationships for queries

MikeB wrote in

m:

Usually, when I design a query (and most often when I design a
query based on other queries) , I can drag a field from one table
to another to define a relationship between the tables.

I have just noticed that I can include queries in the Tools -
Relationships diagram.

If I do this, am I hard-coding relationships between queries? Is
there an advantage/disadvantage to doing so?

Thanks


Coding relationships on queries can save time and effort if you
repeatedly use those relationships in new queries.

The relation appears automatically when you add the queries into the
query builder. You can delete the join without affecting the
relationship, if necessary.

I often need to query my company's ERP system's part master table. All
attribute data for the parts is stored in the parts table as a long
integer, and all the attribute definitions (things like unit of
measure, Item Group, Make/Buy, etc) is in a second table. By making
permanent queries on this second table, I just call up the aplicable
query and have it related to the parts master without actually having
to link the relation fields and set the appropriate filter.

But there is no inherent advantage such as enforced integrity as
Albert Kallal and Tom Wickerath have pointed to you in their replies.

--
Bob Quintal
 




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 11:50 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.