hociman Posted August 6, 2007 Posted August 6, 2007 I am using FileMaker 8.0. I have a database with a value list field whose options are "Yes" or "No". I would like to write a script that will go through all records in the database and change any instances of "Yes" to "No". Is this possible? I tried doing it the following way but was unsuccessful. Show All Records Go to Field [Contact::RSVP] Set Field [Contact::RSVP; Contact::RSVP = "Yes"] Go to Field [Contact::RSVP] Perform Find/Replace [No dialog; Contact::RSVP = "Yes"; Contact::RSVP = "No"; Replace] Thanks for reading!
Vaughan Posted August 7, 2007 Posted August 7, 2007 Here is but one way of doing it: Show All Records Go to Record/Request [ first ] Loop If [ field = "Yes" ] Set Field [ field ; "No" ] End If Go to Record/Request [ next ; exit after last ] End Loop
hociman Posted August 7, 2007 Author Posted August 7, 2007 Vaughan, Thank you so much! I had tried a loop previously, but was unsuccessful. Cheers!
Recommended Posts
This topic is 6319 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