WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Relationship window in backend or frontend

 
   Home -> Office other -> General Discussions RSS
Next:  mail  
Author Message
Lars Brownies

External


Since: Oct 25, 2009
Posts: 2



(Msg. 1) Posted: Sun Oct 25, 2009 1:05 pm
Post subject: Relationship window in backend or frontend
Archived from groups: microsoft>public>access (more info?)

What is the recommended way to maintain the table relationships in the
relationship window? Should I only work in the backend or are there reasons
to also maintain them in the frondend? I noticed that changes in the backend
don't automatically show in the frontend.
Thanks,
Lars
Back to top
Login to vote
Sylvain Lafontaine

External


Since: Apr 18, 2009
Posts: 2



(Msg. 2) Posted: Sun Oct 25, 2009 1:15 pm
Post subject: Re: Relationship window in backend or frontend [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The FE and the BE are two separate things and are not related at all in any
way when it comes to relationshiups and their effect (like cascading delete
or enforcing primary key/foreign key fields). The only purpose to set
relationships on the FE is for documentation purposes only and has
absolutely no effect on the backend and will not be verified, tested or used
or have any other effect whatsoever when Access/JET is working (making
queries) against the BE.

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server
(French)


"Lars Brownies" <Lars.TakeThisOut@Brownies.com> wrote in message
news:hc1vsl$20q9$1@textnews.wanadoo.nl...
> What is the recommended way to maintain the table relationships in the
> relationship window? Should I only work in the backend or are there
> reasons to also maintain them in the frondend? I noticed that changes in
> the backend don't automatically show in the frontend.
> Thanks,
> Lars
>
Back to top
Login to vote
Tom Wickerath

External


Since: Mar 03, 2006
Posts: 1475



(Msg. 3) Posted: Sun Oct 25, 2009 1:15 pm
Post subject: Re: Relationship window in backend or frontend [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Lars,

In addition to Sylvain's reply, I wanted to comment on this statement:

> I noticed that changes in the backend don't automatically show in the frontend.

In the front-end application file, delete the linked tables that are
involved in a relationship that you've edited in the back-end database. Do a
Compact and repair of the FE application file. Then re-establish the linked
tables. You should now see an updated representation of the relationships
diagram in the FE. My advice is to go through this process anytime you make a
design change to a table in the back-end database (ie. delete the linked
tables involved, compact, and re-establish from scratch). Access caches a lot
of information about the structure of the linked table. This cached
information can be inaccurate if you make design changes without refreshing
the link. This process, in my opinion, is better than simply using the VBA
RefreshLinks method.


Tom Wickerath
Microsoft Access MVP
http://www.accessmvp.com/TWickerath/
__________________________________________

"Sylvain Lafontaine" wrote:

The FE and the BE are two separate things and are not related at all in any
way when it comes to relationshiups and their effect (like cascading delete
or enforcing primary key/foreign key fields). The only purpose to set
relationships on the FE is for documentation purposes only and has
absolutely no effect on the backend and will not be verified, tested or used
or have any other effect whatsoever when Access/JET is working (making
queries) against the BE.

--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Email: sylvain2009 sylvainlafontaine com (fill the blanks, no spam please)
Independent consultant and remote programming for Access and SQL-Server
(French)
__________________________________________

"Lars Brownies" <Lars.DeleteThis@Brownies.com> wrote in message
news:hc1vsl$20q9$1@textnews.wanadoo.nl...

What is the recommended way to maintain the table relationships in the
relationship window? Should I only work in the backend or are there reasons
to also maintain them in the frondend? I noticed that changes in the backend
don't automatically show in the frontend.
Thanks,
Lars
Back to top
Login to vote
Tony Toews [MVP]

External


Since: Jan 30, 2007
Posts: 1913



(Msg. 4) Posted: Sun Oct 25, 2009 1:37 pm
Post subject: Re: Relationship window in backend or frontend [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Tom Wickerath <AOS168b AT comcast DOT net> wrote:

>In the front-end application file, delete the linked tables that are
>involved in a relationship that you've edited in the back-end database. Do a
>Compact and repair of the FE application file. Then re-establish the linked
>tables.

I agree with the relinking of the tables when you change the
definition of a table in the BE. But I personally haven't ever seen
the case where you need to do a compact of the FE.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a free, convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/
Granite Fleet Manager http://www.granitefleet.com/
Back to top
Login to vote
John W. Vinson

External


Since: Jan 29, 2004
Posts: 4627



(Msg. 5) Posted: Sun Oct 25, 2009 1:44 pm
Post subject: Re: Relationship window in backend or frontend [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, 25 Oct 2009 17:54:46 +0100, "Lars Brownies" <Lars.DeleteThis@Brownies.com> wrote:

>What is the recommended way to maintain the table relationships in the
>relationship window? Should I only work in the backend or are there reasons
>to also maintain them in the frondend? I noticed that changes in the backend
>don't automatically show in the frontend.
>Thanks,
>Lars
>

Just to add to what Sylvain and Tom have said: the main purposes of
relationships are 1) to maintain referential integrity and 2) to create
indexes in the tables which maintain that integrity and also improve
performance.

Those functions can occur ONLY in the database containing the tables - the
backend. Relationships created in the frontend are "advisory" only; they
cannot prevent "orphan" records from being created, and they cannot affect the
indexing of tables in the backend. The only real benefits they have are to
provide a "hint" for Access to create appropriate joins when you create a
query, and for documentation.

I'll add an emphatic YES!! to Tom's suggestion: if you change any
relationships (or field types, or field sizes, or indexes, or added or deleted
fields) in a backend table, open the frontend; delete ALL the tables (table
links that is to say), and create new links.
--

John W. Vinson [MVP]
Back to top
Login to vote
Lars Brownies

External


Since: Oct 25, 2009
Posts: 2



(Msg. 6) Posted: Sun Oct 25, 2009 6:05 pm
Post subject: Re: Relationship window in backend or frontend [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks all for Most Valuable info!

"John W. Vinson" <jvinson.DeleteThis@STOP_SPAM.WysardOfInfo.com> schreef in bericht
news:lba9e5pb7fl0c4tuba8m9ucquj4luv1smc@4ax.com...
> On Sun, 25 Oct 2009 17:54:46 +0100, "Lars Brownies" <Lars.DeleteThis@Brownies.com>
> wrote:
>
>>What is the recommended way to maintain the table relationships in the
>>relationship window? Should I only work in the backend or are there
>>reasons
>>to also maintain them in the frondend? I noticed that changes in the
>>backend
>>don't automatically show in the frontend.
>>Thanks,
>>Lars
>>
>
> Just to add to what Sylvain and Tom have said: the main purposes of
> relationships are 1) to maintain referential integrity and 2) to create
> indexes in the tables which maintain that integrity and also improve
> performance.
>
> Those functions can occur ONLY in the database containing the tables - the
> backend. Relationships created in the frontend are "advisory" only; they
> cannot prevent "orphan" records from being created, and they cannot affect
> the
> indexing of tables in the backend. The only real benefits they have are to
> provide a "hint" for Access to create appropriate joins when you create a
> query, and for documentation.
>
> I'll add an emphatic YES!! to Tom's suggestion: if you change any
> relationships (or field types, or field sizes, or indexes, or added or
> deleted
> fields) in a backend table, open the frontend; delete ALL the tables
> (table
> links that is to say), and create new links.
> --
>
> John W. Vinson [MVP]
Back to top
Login to vote
Display posts from previous:   
       Home -> Office other -> General Discussions All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
 Office
  Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support