Calantha Posted September 30, 2005 Posted September 30, 2005 Hello, I have just imported 223 records into my database which didn't contain the field "Mailing List" which is a value list with the values "yes" and "no". I need to set all of the records that have an email address in the email address field to have "Yes" checked on the mailing list field. I have tried doing scripts with if statements (i.e. if email address is valid then mailing list "yes" otherwise "no".) I've tried using the set field function as well as any other functions that seems to work. Is it possible to do this?! Or am I going to have to click "Yes" for all 223...?
Reed Posted September 30, 2005 Posted September 30, 2005 Just use a find to create a found set with all the records having valid email addresses, and use replace field contents to set all those values to yes. You could also do this with a loop, but replace is generally faster.
Calantha Posted September 30, 2005 Author Posted September 30, 2005 You mean Find/Replace under Edit or the replace field contents in a script? Because i've done it within a script and it doesn't work... Nothing seems to happen at all. The mailing list field is still blank.
Calantha Posted September 30, 2005 Author Posted September 30, 2005 I got it to work for another field but I just cannot get it to work for the mailing list... and now whenever i check anything on my mailing list field it says it's only supposed to hold specific values, use this one anyway... whereas before it was working fine!
Calantha Posted September 30, 2005 Author Posted September 30, 2005 Ok, I ended up deleting the field and then placing it back on the layout and now it worked. Thanks for your help.
Recommended Posts
This topic is 7060 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now