December 31, 200817 yr Happy New Year, everybody! Please refer to the attached .pdf for the script. The hang-up is the highlighted script instruction under Get(LastError) for some strange reason, the Set Field command won't change the text in the Record::Incident_Tab_Message text field to "No Records Found." I pulled highlighted line of code out and just made a quickie script button out of it and it works fine that way, so I suspect it has something to do with the Perform Find request, but I don't know. I bet the answer will be sooooo simple I'll slap my forehead silly. TIA for your help! File_Error.pdf
December 31, 200817 yr Newbies Hy, when no records are found, "setField()" only will work with global stored fields. Try to switch this field to global stored or select one record on which you can set the field.
December 31, 200817 yr Well, one thing that I notice (although your TO naming convention doesn't allow me to see how your tables are related) is that you are finding in the "Latches" TO, and Setting in the "Record" TO. Perhaps you have a context issue?
December 31, 200817 yr Author Hy, when no records are found, "setField()" only will work with global stored fields. Try to switch this field to global stored or select one record on which you can set the field. Abend, Martin: Thank you--that did the trick.
Create an account or sign in to comment