PC Review


Reply
Thread Tools Rate Thread

Change field value in many records?

 
 
=?Utf-8?B?S2V2aW4=?=
Guest
Posts: n/a
 
      26th Jan 2006
I have a particular field on the end of one-to-many relationships with a
default value of 1.25. I’d like to create a way for users to be able to
enter a different value into a control on a subform, 1.22 as an example, and
then click a button or something and it would change all records within that
relationship to the 1.22 value.

The relationships are as follows:
tblBid has a field BidNumber
tblItem has 2 primary keys - RoomNumber & ItemNumber, this is on the many
side of relationships to the field BidNumber
tblItemDetail is on the many side of a relationship to tblItem, this is
where the field MarkUp exists with the default value 1.25

The end goal is to be able to enter a desired value of the MarkUp field in
one location, and have it update the value in all of the records associated
with one BidNumber. Where do I start with something like this? An update
query, a macro, etc.?
Any help is appreciated!
 
Reply With Quote
 
 
 
 
Pat Hartman\(MVP\)
Guest
Posts: n/a
 
      26th Jan 2006
Run an update query. If you only want to change the records with the
default value, be sure to include that field in the criteria as well:

Where KeyField = Forms!yourForm!KeyField AND Markup = 1.25;

"Kevin" <(E-Mail Removed)> wrote in message
news:1553F6CA-B8BF-4BD7-8D75-(E-Mail Removed)...
>I have a particular field on the end of one-to-many relationships with a
> default value of 1.25. I'd like to create a way for users to be able to
> enter a different value into a control on a subform, 1.22 as an example,
> and
> then click a button or something and it would change all records within
> that
> relationship to the 1.22 value.
>
> The relationships are as follows:
> tblBid has a field BidNumber
> tblItem has 2 primary keys - RoomNumber & ItemNumber, this is on the many
> side of relationships to the field BidNumber
> tblItemDetail is on the many side of a relationship to tblItem, this is
> where the field MarkUp exists with the default value 1.25
>
> The end goal is to be able to enter a desired value of the MarkUp field in
> one location, and have it update the value in all of the records
> associated
> with one BidNumber. Where do I start with something like this? An update
> query, a macro, etc.?
> Any help is appreciated!



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Code to change a field in all records in a subform Amy E. Baggott Microsoft Access Form Coding 10 13th Feb 2009 08:46 PM
Help: format records (color) at each change in continious field =?Utf-8?B?TVJHUkVFTg==?= Microsoft Excel Misc 9 15th Oct 2007 03:27 AM
How to change one field in all records simultaneously? =?Utf-8?B?UmVlY2lvODU=?= Microsoft Access Database Table Design 2 21st Aug 2007 03:41 PM
How to change path name for field in multiple records? Don Microsoft Access 4 28th Aug 2006 08:08 PM
Using a form to change a field value in multiple records =?Utf-8?B?YW1pZ2ExMjAw?= Microsoft Access Form Coding 2 18th Aug 2005 06:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:27 PM.