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  

Problems with removing relationship



 
 
Thread Tools Display Modes
  #1  
Old May 22nd, 2009, 06:41 PM posted to microsoft.public.access.tablesdbdesign
Brad
external usenet poster
 
Posts: 943
Default Problems with removing relationship

I am running into a strange problem with Access 2007 table relationships.

Earlier, I set up a relationship between our Customer table and a state
table (state abbreviation and state name). Recently I learned that in some
cases the state is not known when a Customer is added to the system. If
state is left blank, we get the following error, as expected (because of the
relationship).

The Microsoft Access database engine cannot find a record in the table
name with key matching field(s) name. (Error 3101)

I then removed the relationship between the Customer table and the State
table. I thought that this would eliminate the 3101 error. Unfortunately,
we are still getting this error.

I am confused and could use some advice.

I have looked for “hidden” objects and have found none. I have done a
“Compact and Repair” and we still get the error.

Thanks in advance for your help.

Brad

  #2  
Old May 22nd, 2009, 07:46 PM posted to microsoft.public.access.tablesdbdesign
Piet Linden[_2_]
external usenet poster
 
Posts: 280
Default Problems with removing relationship

On May 22, 12:41*pm, Brad wrote:
I am running into a strange problem with Access 2007 table relationships.

Earlier, I set up a relationship between our Customer table and a state
table (state abbreviation and state name). *Recently I learned that in some
cases the state is not known when a Customer is added to the system. *If
state is left blank, we get the following error, as expected (because of the
relationship).

The Microsoft Access database engine cannot find a record in the table
name with key matching field(s) name. (Error 3101)

I then removed the relationship between the Customer table and the State
table. *I thought that this would eliminate the 3101 error. *Unfortunately,
we are still getting this error.

I am confused and could use some advice.

I have looked for hidden objects and have found none. *I have done a
Compact and Repair and we still get the error.

Thanks in advance for your help.

Brad


Compact the database. then it will properly discard the
relationship. Otherwise, it just hangs around for some reason.
  #3  
Old May 23rd, 2009, 03:24 AM posted to microsoft.public.access.tablesdbdesign
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Problems with removing relationship

On Fri, 22 May 2009 10:41:00 -0700, Brad
wrote:

I then removed the relationship between the Customer table and the State
table. I thought that this would eliminate the 3101 error. Unfortunately,
we are still getting this error.


How did you remove the relationship? Deleting the table icon in the
relationships window will NOT do so; you need to have the relationship
visible, select the join line, and delete THAT.
--

John W. Vinson [MVP]
  #4  
Old May 23rd, 2009, 07:28 PM posted to microsoft.public.access.tablesdbdesign
tina
external usenet poster
 
Posts: 1,997
Default Problems with removing relationship

hi, John. i'm feeling pretty stupid for not understanding this, but i have
to ask anyway: why would the op get an error because of the relationship.
tblStates has a one-to-many relationship with tblCustomers, correct? as in,
one state may have many customers, but each customer is in only one state.
so if you enter a record in tblCustomers, why would you expect to get an
error if you don't enter a state in that record? i'd only expect a
relationship-based error if you tried to enter a state that wasn't listed in
tblStates. please tell me what i'm not seeing, otherwise it's going to bug
me to death! tia, tina


"John W. Vinson" wrote in message
...
On Fri, 22 May 2009 10:41:00 -0700, Brad
wrote:

I then removed the relationship between the Customer table and the State
table. I thought that this would eliminate the 3101 error.

Unfortunately,
we are still getting this error.


How did you remove the relationship? Deleting the table icon in the
relationships window will NOT do so; you need to have the relationship
visible, select the join line, and delete THAT.
--

John W. Vinson [MVP]



  #5  
Old May 24th, 2009, 10:01 PM posted to microsoft.public.access.tablesdbdesign
Brad
external usenet poster
 
Posts: 943
Default Problems with removing relationship

John,

Thanks for your help.

Here is how I deleted the relationship...
- Went into "relationships window"
- Selected the Join Line and deleted it

I then exited the relationship window and went back in again to double check
on the delete. The Join Line was not shown, so I was pretty sure that I had
indeed nuked the relationship.

Because I am fairly new to Access 2007, I am not sure if I am doing
something stupid, or if I am running into some sort of Access bug.

Thanks again for your assistance. I really appreciate it!
Brad



"John W. Vinson" wrote:

On Fri, 22 May 2009 10:41:00 -0700, Brad
wrote:

I then removed the relationship between the Customer table and the State
table. I thought that this would eliminate the 3101 error. Unfortunately,
we are still getting this error.


How did you remove the relationship? Deleting the table icon in the
relationships window will NOT do so; you need to have the relationship
visible, select the join line, and delete THAT.
--

John W. Vinson [MVP]

 




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 06:40 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.