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  

Front end/Back end table relationships



 
 
Thread Tools Display Modes
  #1  
Old July 28th, 2009, 07:38 PM posted to microsoft.public.access.tablesdbdesign
John
external usenet poster
 
Posts: 3
Default Front end/Back end table relationships

Hello.

I'm hoping someone can help me with a problem that just started
happening today.

I have a database tool that's split into a front end and back end. The
back end has various tables, and a bunch of relationships set up
amongst those tables. The front end has all of these tables linked.

Normally, when I create a query that contains any of those related
tables, Access automatically adds the appropriate joins in the query.
This was happening fine up until today. Now, it doesn't add any of the
joins, even though the relationships are set up fine in the back end.
I haven't made any changes in either the front or back end, so I don't
know why it has suddenly stopped working.

I've tried various things, such as relinking all the tables,
compacting and repairing both database files, etc. Does anyone have
any ideas?

Thanks.

John
  #2  
Old July 29th, 2009, 07:27 AM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Front end/Back end table relationships

On Tue, 28 Jul 2009 11:38:12 -0700 (PDT), John wrote:

Normally, when I create a query that contains any of those related
tables, Access automatically adds the appropriate joins in the query.
This was happening fine up until today. Now, it doesn't add any of the
joins, even though the relationships are set up fine in the back end.
I haven't made any changes in either the front or back end, so I don't
know why it has suddenly stopped working.

I've tried various things, such as relinking all the tables,
compacting and repairing both database files, etc. Does anyone have
any ideas?


Hit it with a baseball bat g...

Open the frontend. Use Tools... Options and be sure that "Track Name
Autocorrect" is UNCHECKED (this feature has richly earned the nickname Name
Autocorrupt). If it was checked, compact the database after unchecking it.

Delete ALL the table links.

Use File... Get External Data... Link and relink to the tables in the backend.

Compact and repair, and see if that doesn't help.

--

John W. Vinson [MVP]
  #3  
Old July 29th, 2009, 01:05 PM posted to microsoft.public.access.tablesdbdesign
John
external usenet poster
 
Posts: 3
Default Front end/Back end table relationships

On Jul 29, 2:27*am, John W. Vinson
wrote:
On Tue, 28 Jul 2009 11:38:12 -0700 (PDT), John wrote:
Normally, when I create a query that contains any of those related
tables, Access automatically adds the appropriate joins in the query.
This was happening fine up until today. Now, it doesn't add any of the
joins, even though the relationships are set up fine in the back end.
I haven't made any changes in either the front or back end, so I don't
know why it has suddenly stopped working.


I've tried various things, such as relinking all the tables,
compacting and repairing both database files, etc. Does anyone have
any ideas?


Hit it with a baseball bat g...

Open the frontend. Use Tools... Options and be sure that "Track Name
Autocorrect" is UNCHECKED (this feature has richly earned the nickname Name
Autocorrupt). If it was checked, compact the database after unchecking it..

Delete ALL the table links.

Use File... Get External Data... Link and relink to the tables in the backend.

Compact and repair, and see if that doesn't help.

--

* * * * * * *John W. Vinson [MVP]


Hi,

I looked at that option in the front end, and it was already
unchecked. However, it was checked in the back end. I'm not sure if
it's supposed to be checked there or not (I don't really know what the
option does), but I unchecked it there, compacted and repaired the
back end, then re-linked all tables linked in the front end and
compacted and repaired the front end. It didn't fix the problem.

What would happen if I set up relationships in the front end? Would
those relationships override the ones set up in the back end? I know I
can't enforce referential integrity in the front end, but as long as
those don't override the back end, the integrity should be taken care
of by the back end relationships.

I suppose that this issue isn't really that big of a deal. The
database still functions the way it's supposed to (at least, I haven't
noticed any difference yet). I just find it annoying when things just
randomly happen and I don't know why or how to fix them.
  #4  
Old July 29th, 2009, 10:05 PM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Front end/Back end table relationships

On Wed, 29 Jul 2009 05:05:19 -0700 (PDT), John wrote:

I looked at that option in the front end, and it was already
unchecked. However, it was checked in the back end. I'm not sure if
it's supposed to be checked there or not (I don't really know what the
option does), but I unchecked it there, compacted and repaired the
back end, then re-linked all tables linked in the front end and
compacted and repaired the front end. It didn't fix the problem.


:-{(

What would happen if I set up relationships in the front end? Would
those relationships override the ones set up in the back end? I know I
can't enforce referential integrity in the front end, but as long as
those don't override the back end, the integrity should be taken care
of by the back end relationships.


I don't see how that would help. The frontend relationships should in fact
inherit from those in the backend, and I don't know how you would manage two
(in your case duplicate but in principle distinct) sets of relationships!

I suppose that this issue isn't really that big of a deal. The
database still functions the way it's supposed to (at least, I haven't
noticed any difference yet). I just find it annoying when things just
randomly happen and I don't know why or how to fix them.


I'm baffled too.
--

John W. Vinson [MVP]
  #5  
Old July 30th, 2009, 03:22 AM posted to microsoft.public.access.tablesdbdesign
Hans Up
external usenet poster
 
Posts: 284
Default Front end/Back end table relationships

John wrote:
Normally, when I create a query that contains any of those related
tables, Access automatically adds the appropriate joins in the query.
This was happening fine up until today. Now, it doesn't add any of the
joins, even though the relationships are set up fine in the back end.
I haven't made any changes in either the front or back end, so I don't
know why it has suddenly stopped working.


In your Access options, do you have "Enable AutoJoin" checked for query
design?

I think that feature does not depend on relationships, but it's the only
thing I can suggest which comes close to the problem you described.
 




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 04:36 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.