Daniel Shanahan Posted May 23, 2001 Posted May 23, 2001 We have a video db that was converted from an old DOS program. One field is called "Level" and contains any combination of the following: P, I, JrH, SrH, A . If a video is good for the whole family it will contain ALL those letters. If it is specifically for High School it will only have "SrH". I'm preparing to combine this new db w/another one (for books) and i'd like to take this field and make it into a check-box field (which would be easier for us to search). I've created a field "Level Copy" and tried to make it a calculation using the Case command [Case(Level = "P", "Primary", Level = "I", "Intermediate",) etc. unfortunately, it didn't work. I made it a text field and tried to write a script that would work, but no luck. basically, i'd like the program to look at the original Level field and mark the corresponding check-boxes in the Level Copy field (then i'll delete the Level field). any ideas on how to go about this?
LiveOak Posted May 23, 2001 Posted May 23, 2001 You can use a looping script to set another text field up for display as a checkbox field. The important thing to remember is that multiple values in a checkbox field are stored as each value separated by a carriage return. The script might look like: Show All Goto Record/Request/Page(first) Loop SetField(NewText, Case(PatternCount(OldText, "P"), "Primary" & "
Daniel Shanahan Posted May 24, 2001 Author Posted May 24, 2001 thanks BD. not only was that helpful, but I learned a lot too. works great! thanks! dan ps. the carriage return symbol did come through.
Recommended Posts
This topic is 8625 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