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  

Updating field on a record that has related records.



 
 
Thread Tools Display Modes
  #1  
Old June 8th, 2004, 12:41 PM
David Andrews
external usenet poster
 
Posts: n/a
Default Updating field on a record that has related records.

Hi

Is it possible to update a field in a record which is related to other
records? Or, to update those related fields as well so that they are
still related? (if you see what I mean!?)

Currently, I get the error 'The record cannot be deleted or changed
because table 'xxx' includes related records.'

I am trying to have a temporary number entered into the database when
the end user creates a record and then allow an another member of
staff to replace that temporary number with a proper one.

The field in question is a primary key and an important field to the
whole database.

An example of a similar siutation would be if a member of staff
created an order with a temporary order number with related order
items and then the order number needed to be changed (obviously
without losing the related items on that order).

Alternatively, can anyone suggest a better way of accomplishing this?

Sorry if the above is a bit vague, if more information is required,
please let me know and I'll see what I can post.

Thanks for any assistance.
David
  #2  
Old June 8th, 2004, 01:27 PM
Joseph Meehan
external usenet poster
 
Posts: n/a
Default Updating field on a record that has related records.

David Andrews wrote:
Hi

Is it possible to update a field in a record which is related to other
records? Or, to update those related fields as well so that they are
still related? (if you see what I mean!?)

Currently, I get the error 'The record cannot be deleted or changed
because table 'xxx' includes related records.'

I am trying to have a temporary number entered into the database when
the end user creates a record and then allow an another member of
staff to replace that temporary number with a proper one.

The field in question is a primary key and an important field to the
whole database.

An example of a similar siutation would be if a member of staff
created an order with a temporary order number with related order
items and then the order number needed to be changed (obviously
without losing the related items on that order).

Alternatively, can anyone suggest a better way of accomplishing this?

Sorry if the above is a bit vague, if more information is required,
please let me know and I'll see what I can post.

Thanks for any assistance.
David


I suggest you should be able to do what, I think, you want to do by
creating a new field for that number that will be corrected and us an
autonumber field for the existing one and hid it so the users never see it.

--
Joseph E. Meehan

26 + 6 = 1 It's Irish Math



  #3  
Old June 10th, 2004, 08:50 AM
David Andrews
external usenet poster
 
Posts: n/a
Default Updating field on a record that has related records.

"Joseph Meehan" wrote in message ...


I suggest you should be able to do what, I think, you want to do by
creating a new field for that number that will be corrected and us an
autonumber field for the existing one and hid it so the users never see it.



Thanks Joseph

Since posting my message I tried it several ways and have ended up
doing what you have suggested by creating a new field that the user
sees which is not tied by a relationship and hiding the related field
from view.

David
  #4  
Old June 10th, 2004, 10:16 AM
Joseph Meehan
external usenet poster
 
Posts: n/a
Default Updating field on a record that has related records.

David Andrews wrote:
"Joseph Meehan" wrote in message
...


I suggest you should be able to do what, I think, you want to do
by creating a new field for that number that will be corrected and
us an autonumber field for the existing one and hid it so the users
never see it.



Thanks Joseph

Since posting my message I tried it several ways and have ended up
doing what you have suggested by creating a new field that the user
sees which is not tied by a relationship and hiding the related field
from view.

David


Glad to hear you have it working now.

--
Joseph E. Meehan

26 + 6 = 1 It's Irish Math



 




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 08:12 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.