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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to update or change a text field



 
 
Thread Tools Display Modes
  #1  
Old May 19th, 2004, 04:46 PM
Le Tran
external usenet poster
 
Posts: n/a
Default How to update or change a text field

Hello,
My problem is
1. How to update the text field. For example: the value of this field is 014(Text: data type) change to 425 (Text Data type also)
2. This happens all the time because of changing staff code in office-How to code it so that I just use one query to change this when it happens and do not have to make another query for this.
Thank you in Advance,
Le Tran
  #2  
Old May 19th, 2004, 05:50 PM
John Vinson
external usenet poster
 
Posts: n/a
Default How to update or change a text field

On Wed, 19 May 2004 08:46:04 -0700, "Le Tran"
wrote:

Hello,
My problem is
1. How to update the text field. For example: the value of this field is 014(Text: data type) change to 425 (Text Data type also)
2. This happens all the time because of changing staff code in office-How to code it so that I just use one query to change this when it happens and do not have to make another query for this.
Thank you in Advance,
Le Tran


A Parameter Query can do this for you.

Create a new Query based on the table. Change it to an Update query
(using the Query menu option or the query type icon).

On the Critera line type

[Enter code to be changed:]

and on the Update To line type

[Enter new value for code:]

or any other suitable prompts. When you run the query, the user will
be prompted twice; when the query runs, it will replace the value they
enter in the "to be changed" prompt with the value they put into the
"new value" prompt.

John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public
  #3  
Old May 19th, 2004, 07:51 PM
Le Tran
external usenet poster
 
Posts: n/a
Default How to update or change a text field

Hello John,

Thank you for your suggestion and I did it works fine, but now I need to do something that can tell the users that how many records that belong to this code (person) is changed to another code. I think that I need to code for this but I do not know how to or where to begin. Could you give some suggestion that would help!
Thank you,
Le Tran
 




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 02:50 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.