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  

How to change one field in all records simultaneously?



 
 
Thread Tools Display Modes
  #1  
Old August 21st, 2007, 12:12 PM posted to microsoft.public.access.tablesdbdesign
Reecio85
external usenet poster
 
Posts: 1
Default How to change one field in all records simultaneously?

I have an existing table of customers; names, addresses, etc.

I've just added a yes/no check box field and titled it "mailing list" so
that I can easily remove people who request to be removed. However, the
default value is No, and I can't find a way of changing all the records to
read 'Yes' in this field.
  #2  
Old August 21st, 2007, 01:10 PM posted to microsoft.public.access.tablesdbdesign
scubadiver
external usenet poster
 
Posts: 1,673
Default How to change one field in all records simultaneously?


Use an update query! :-)

--

The 11th day of every month:

http://truthaction.org/forum/index.php


"Reecio85" wrote:

I have an existing table of customers; names, addresses, etc.

I've just added a yes/no check box field and titled it "mailing list" so
that I can easily remove people who request to be removed. However, the
default value is No, and I can't find a way of changing all the records to
read 'Yes' in this field.

  #3  
Old August 21st, 2007, 03:41 PM posted to microsoft.public.access.tablesdbdesign
Carl Rapson
external usenet poster
 
Posts: 517
Default How to change one field in all records simultaneously?

"Reecio85" wrote in message
...
I have an existing table of customers; names, addresses, etc.

I've just added a yes/no check box field and titled it "mailing list" so
that I can easily remove people who request to be removed. However, the
default value is No, and I can't find a way of changing all the records to
read 'Yes' in this field.


UPDATE [table] SET [mailing list] = TRUE;

You might also want to change the default value of the field to be True, so
that new records will automatically be set to True.

Carl Rapson


 




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:07 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.