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. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|